Adobe Flex 3 Help

Handling events when using transitions

You can handle view state events, such as currentStateChange and currentStateChanging, as part of an application that defines transitions. Changes to the view state, dispatching events, and playing transition effects occur in the following order:

  1. You set the currentState property to the destination view state.
  2. Flex dispatches the currentStateChanging event.
  3. Flex examines the list of transitions to determine the one that matches the change of the view state.
  4. Flex examines the components to determine the start values of any effects.
  5. Flex applies the destination view state to the application.
  6. Flex dispatches the currentStateChange event.
  7. Flex plays the effects that you defined in the transition.

If you change state again while a transition plays, Flex jumps to the end of the transition before starting any transition associated with the new change of view state.