User Guide

Transition-based classes 1255
Example
The following code creates an instance of TransitionManager that applies the Rotate
transition clockwise 720 degrees (two full revolutions). The content target of the transition is
the movie clip img1_mc. The TransitionManager instance applies a direction of
mx.transitions.Transition.IN over a duration of 3 seconds with an easing set to
Strong.easeInOut so that the transition starts slowly, speeds up, and then ends slowly.
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Rotate, direction:Transition.IN,
duration:3, easing:Strong.easeInOut, ccw:false, degrees:720});
Squeeze transition
ActionScript Class Name mx.transitions.Squeeze
Parameters
dimension An integer that indicates the Squeeze effect should be horizontal (0) or
vertical (1).
Description
A transition effect: Scales the movie clip object horizontally or vertically.
This class is used by specifying
mx.transitions.Squeeze as a transObject.type
parameter for the TransitionManager class.
Example
The following code creates an instance of TransitionManager that applies the Squeeze
transition with a
dimension integer specified as vertical (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 an Elastic easing effect
in the direction of easeOut.
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Squeeze, direction:Transition.IN,
duration:2, easing:Elastic.easeOut, dimension:1});
Wipe transition
ActionScript Class Name mx.transitions.Wipe
Parameters
startPoint An integer that indicates a starting position. Range of 1 to 4 and 6 to 9: