ActionScript 2.0 Components Language Reference |
|
|
|
| TransitionManager class > About the transition-based classes > PixelDissolve transition | |||
ActionScript Class Name mx.transitions.PixelDissolve
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.
A transition effect: Reveals the movie clip object by using randomly appearing or disappearing rectangles in a checkerboard pattern.
This class is used by specifying mx.transitions.PixelDissolve as a transObject.type parameter for the TransitionManager class.
The following code creates an instance of TransitionManager that applies the PixelDissolve transition with ten xSections and ten ySections. 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 2 seconds with no easing.
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:PixelDissolve, direction:Transition.IN, duration:2, easing:None.easeNone, xSections:10, ySections:10});
|
|
|
|