User Guide
Transition-based classes 1253
Example
The following code creates an instance of TransitionManager that applies the Iris transition
with a
startPoint from the center (5) and a masking shape of
mx.transitions.Iris.CIRCLE. 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 easing of Strong with an emphasis on the easeOut by
specifying the
mx.transitions.easing.Strong.easeOut easing calculation method.
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN,
duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
Photo transition
ActionScript Class Name mx.transitions.Photo
Description
A transition effect: Makes the movie clip object appear or disappear like a photographic flash.
This class is used by specifying
mx.transitions.Photo as a transObject.type parameter
for the TransitionManager class.
Example
The following code creates an instance of TransitionManager that applies the Photo transition
to a content target movie clip img1_mc. The TransitionManager class applies a direction of
mx.transitions.Transition.IN over a duration of 1 second with no easing.
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start (img1_mc, {type:Photo, direction:Transition.IN,
duration:1, easing:None.easeNone});
PixelDissolve transition
ActionScript Class Name mx.transitions.PixelDissolve
Parameters
xSections An integer that indicates the number of masking rectangle sections along the
horizontal axis. The recommended range is 1 to 50.
ySections An integer that indicates the number of masking rectangle sections along the
vertical axis. The recommended range is 1 to 50.