Language Version : | ActionScript 3.0 |
Player Version : | Flash Player 9 |
The PixelDissolve class reveals reveals the movie clip object by using randomly appearing or disappearing rectangles
in a checkerboard pattern. This effect requires the following 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.
For example, the following code uses the PixelDissolve transition for the movie clip
instance img1_mc
:
import fl.transitions.*;
import fl.transitions.easing.*;
TransitionManager.start(img1_mc, {type:PixelDissolve, direction:Transition.IN, duration:2, easing:Regular.easeIn, xSections:10, ySections:10});