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

Blinds transition

Reveals the movie clip object by using appearing or disappearing rectangles.

Fade transition

Fades the movie clip object in or out.

Fly transition

Slides the movie clip object in from a specified direction.

Iris transition

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.

Photo transition

Causes the movie clip object to appear or disappear like a photographic flash.

PixelDissolve transition

Reveals or hides the movie clip object by using randomly appearing or disappearing rectangles in a checkerboard pattern.

Rotate transition

Rotates the movie clip object.

Squeeze transition

Scales the movie clip object horizontally or vertically.

Wipe transition

Reveals or hides the movie clip object by using an animated mask of a shape that moves horizontally.

Zoom transition

Zooms the movie clip object in or out by scaling it in proportion.