User Guide
1246 TransitionManager class
Example
The following code uses the TransitionManager.start() method to create an instance of
TransitionManager and assigns an Iris transition to a movie clip called img1_mc. The
TransitionManager.start() method contains two parameters. The first parameter,
content, is the MovieClip object that the transition effect will be applied to. The second
parameter for the
TransitionManager.start() method, transParam, contains an object
that holds a parameter collection. This object that contains a parameter collection first
designates the type of transition effect with the
type parameter, followed by the direction,
duration, and easing parameters. The type, direction, duration, and easing
parameters are required information for all TransitionManager effects. Following the
easing
parameter are any parameters that the transition type specifically requires. In the following
example, the Iris transition is the type of transition, and the Iris transition requires the
startPoint and shape parameters (for more information about the Iris transition
parameters, see “Iris transition” on page 1252):
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN,
duration:5, easing:Bounce.easeOut, startPoint:5, shape:Iris.CIRCLE});
TransitionManager.startTransition()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
transitionManagerInstance.startTransition(transParams)
Parameters
transParams A collection of parameters that are passed within an object.