Language Version : | ActionScript 3.0 |
Player Version : | Flash Player 9 |
The Squeeze class scales the movie clip object horizontally or vertically. This effect requires the
following parameters:
dimension
: An integer that indicates whether the Squeeze effect should be horizontal (0) or vertical (1).
For example, the following code uses the Squeeze transition for the movie clip
instance img1_mc
:
import fl.transitions.*;
import fl.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Squeeze, direction:Transition.IN, duration:2, easing:Elastic.easeOut, dimension:1});