Monday, August 29, 2011

Extending MXML Components with MXML

I've recently needed to create an MXML component that enables users to add MXML
content into it. The solution is simple yet powerful and provides a way to easily create
extendable MXML components.
In the example below, the component holds a ButtonBar and a ViewStack.
The ViewStack itself is a property of the component that can be added in MXML
when using the component. Each user can add as many views as he needs and
the ButtonBar displays the views.


Code can be found here.

No comments:

Post a Comment

About Me

I've been developing Internet and rich-media application for 13 years. In my work I emphasis usability and best user experience as well as sleek design. My main expertise are Flex and Flash.

Followers