User Guide
1256 TransitionManager class
Top Left, 1; Top Center, 2; Top Right, 3; Left Center, 4; Right Center, 6; Bottom Left, 7;
Bottom Center, 8; Bottom Right, 9.
Description
A transition effect: Reveals or hides the movie clip object by using an animated mask of a
shape that moves horizontally.
This class is used by specifying
mx.transitions.Wipe as a transObject.type parameter for
the TransitionManager class.
Example
The following code creates an instance of TransitionManager that applies the Wipe transition
with a
startPoint from the top left (1). The content target of the transition is the movie clip
img1_mc. The TransitionManager applies a direction of
mx.transitions.Transition.IN
over a duration of 2 seconds with no easing.
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Wipe, direction:Transition.IN,
duration:2, easing:None.easeNone, startPoint:1});
Zoom transition
ActionScript Class Name mx.transitions.Zoom
Description
A transition effect: Zooms the movie clip object in or out by scaling it in proportion.
This class is used by specifying
mx.transitions.Zoom as a transObject.type parameter for
the TransitionManager class.
Example
The following code creates an instance of TransitionManager that applies a Zoom transition
to the content target movie clip img1_mc. The TransitionManager applies a direction of
mx.transitions.Transition.IN over a duration of 2 seconds with an Elastic type easing
that starts fast and eases slowly at the finish.
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Zoom, direction:Transition.IN,
duration:2, easing:Elastic.easeOut});