ActionScript 2.0 Components Language Reference |
|
|
|
| TransitionManager class > About the transition-based classes | |||
Flash includes ten transitions that you can use to apply effects to movie clip objects. You can customize all the transitions by including optional easing methods, and most transitions accept several optional parameters that allow you to control particular aspects of its effect. Easing refers to gradual acceleration or deceleration during an animation, which makes your animations appear more realistic. For example, a ball might gradually increase its speed near the beginning of an animation but slow down before it arrives at a full stop at the end of the animation. Many equations exist for this acceleration and deceleration, which change the easing animation.
The transitions are used with the TransitionManager class. See TransitionManager class. You use the TransitionManager class to specify a transition and apply it to a movie clip object rather than calling it directly. For example, to apply a Zoom transition to a movie clip called img1_mc, you specify the Zoom transition class as the type parameter in TransitionManager.start():
mx.transitions.TransitionManager.start(myMovieClip_mc, {type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.Bounce.easeOut});
Flash includes the following transitions:
|
Transition |
Description |
|---|---|
|
Reveals the movie clip object by using appearing or disappearing rectangles. |
|
|
Fades the movie clip object in or out. |
|
|
Slides the movie clip object in from a specified direction. |
|
|
Reveals or hides the movie clip object by using an animated mask of a square shape or a circle shape that zooms in or out. |
|
|
Causes the movie clip object to appear or disappear like a photographic flash. |
|
|
Reveals or hides the movie clip object by using randomly appearing or disappearing rectangles in a checkerboard pattern. |
|
|
Rotates the movie clip object. |
|
|
Scales the movie clip object horizontally or vertically. |
|
|
Reveals or hides the movie clip object by using an animated mask of a shape that moves horizontally. |
|
|
Zooms the movie clip object in or out by scaling it in proportion. |
|
|
|
|