The following example shows how you can create different view states in a Flex application by using the <mx:states /> and <mx:State /> tags.
Full code after the jump.
Continue reading ‘Creating view states in a Flex application’
The following example shows how you can create different view states in a Flex application by using the <mx:states /> and <mx:State /> tags.
Full code after the jump.
Continue reading ‘Creating view states in a Flex application’
In a previous post, “Toggling a Flex container’s visibility”, we looked at toggling a VBox container’s visibility by setting both the visible property and includeInLayout property. While the approach felt a little crude, we can build the same thing using the much more powerful view states. What are view states and how do we use them? Well, if you’re new to states, this should clear everything up: “Adobe - Flex Quick Start Basics: Creating States”.
Now, with that out of the way, lets look at some code and a basic example.
Full code after the jump.
Continue reading ‘Toggling a Flex container’s visibility using states’