Transition-Based Classes - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Transition-based classes

Inheritance
(Root class)
ActionScript Class Name
The Transition class is the base class for all transition classes. You do not use or access this class
directly. It allows transition-based classes to share some common behaviors and properties that
are accessed by an instance of the TransitionManager class. Transition-based classes define an
effect that is applied over time to a movie clip or a slide.
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
on page
1237. 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});
mx.transitions.Transition
:
"TransitionManager class"
Transition-based classes
1249

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents