Flex component development mindset
by Carlos Pinho, June 28th, 2007
  • Share
  • Share

flex3_fx_124x120.jpgRowan wrote a nice article abou flex components. He give us a clear picture on why you shoud use the components on your applications.

Components are so easy to use, that it’s almost criminal to start building your first rough cut without them. One of the biggest benefits is how well you can capture your business interface needs within the components. Almost turning your mxml and actionscript into a domain specific language. For example in an eCommerce application, the heirachy might look like this

AppStack (< View Stack )
- Dashboard ( < Canvas )
- OrdersStack ( < View Stack )
— OrdersList ( < Panel )
— OrderView ( < Panel )
- CustomersStack ( < View Stack )
- InventoryStack ( < View Stack )
- ReportsStack ( < View Stack )

With examples of public methods:

OrdersList.refreshOrders()
OrdersList.switchToCustomersOrders(customerID:Number)
OrderView.changeToEditMode()
OrderView.showBackOfficeInformation()

Brgds,
CP

Copy and Paste the code below
Email and IM
Websites
Forums
Get This

No Comments.

Let leave a Comments for this post.