5. Managing States

This chapter gives you a better idea of how to manage the states within your components, how to update the display, how to add and remove children, and how the layout of your application is manipulated to reflect this.

What Are States?

From a conceptual standpoint, the terms state and states can refer to a few different things. However, within the Flex world, state usually describes the various visual views that a user may access through user interaction or external influence. To be completely correct, states are generally referred to as view states, although don’t confuse this term with the ViewStack component or skin states; they refer to different things.

The vast majority of you probably have dealt with states without ...

Get Developing Flex 4 Components: Using ActionScript 3.0 and MXML to Extend Flex and AIR Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.