ActionScript 2.0 Components Language Reference |
|
|
|
| TransitionManager class > About the transition-based classes > Squeeze transition | |||
ActionScript Class Name mx.transitions.Squeeze
dimension An integer that indicates the Squeeze effect should be horizontal (0) or vertical (1).
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.
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});
|
|
|
|