User Guide

1237
48
CHAPTER 48
TransitionManager class
ActionScript Class Name mx.transitions.TransitionManager
The TransitionManager class and the effect-defining transition-based classes allow you to
quickly apply impressive transition animation effects to slides and movie clips.
As its name implies, the TransitionManager class manages transitions. It allows you to apply
one of ten animation effects to slides and movie clips. When creating custom components of
version 2 of the Macromedia Component Architecture, you can use Tr a n si ti o n Ma n a g er t o
apply animation effects to movie clips in your components visual interface. The transition
effects are defined in a set of transition classes that all extend the base class
mx.transitions.Transition. You apply transitions through an instance of a
TransitionManager only; you do not instantiate them directly. The TransitionManager class
implements animation events.
Using the TransitionManager class
To use the methods and properties of the TransitionManager class, you have two options for
creating a new instance. The easiest is to call the
TransitionManager.start() method,
which creates a new TransitionManager instance, designates the target object, applies a
transition with an easing method, and starts it in one call. The following code uses the
TransitionManager.start() method:
mx.transitions.TransitionManager.start(myMovieClip_mc,
{type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN,
duration:1, easing:mx.transitions.easing.Bounce.easeOut});
For more information about the TransitionManager.start() method, its use, and
parameters, see
TransitionManager.start() on page 1244.