|
States are a powerful tool that encapsulate a lot of the work of creating stateful components, that is, components that have multiple views. These could be controls that need to operate as both an editor and a display, a dialog box with multiple screens, or a component with a menu view and detail view. These multiple views, when contained within a single component, are referred to as states. The Flex Framework defines a class called State, contained within the mx.state package, that lets you define the properties of a particular view within a single component. All UIComponents let you add one or more mx.state.State objects to their states array, which enables you to easily add and remove any child components, control styles, and use Effects and Transitionswhen a State is entered or exited. |
|