MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1242

Components language reference
Table of Contents

Advertisement

You can also create a new instance of the TransitionManager class by using the new operator.
You then designate the transition properties and start the transition effect in a second step by
calling the
TransitionManager.startTransition()
TransitionManager.startTransition()
var myTransitionManager:mx.transitions.TransitionManager = new
mx.transitions.TransitionManager(myMovieClip_mc);
myTransitionManager.startTransition({type:mx.transitions.Zoom,
direction:Transition.IN, duration:1,
easing:mx.transitions.easing.Bounce.easeOut});
TransitionManager class parameters
When you create a new instance of a TransitionManager class by using the new operator, you
must designate a target movie clip in the
constructor for the mx.transitions.TransitionManager class has the following parameter name
and type:
TransitionManager(content:MovieClip)
content
is the movie clip object to which the TransitionManager instance applies a transition.
If you create a TransitionManager instance by using the new operator, you must then
designate the properties of the transition that you want to apply and follow with a call to
start the transition using the
otherwise, the transition is not applied to a movie clip or started. For details about the
TransitionManager.startTransition()
TransitionManager.startTransition() on page
two-step process of creating a TransitionManager instance is to simply call the
TransitionManager.start()
TransitionManager.start() on page
method allows you to create a TransitionManager instance, provide the target movie
clip, and specify the transition properties in one call.
Specifying an easing class and method in a transition
When you create an instance of the TransitionManager class by using the
TransitionManager.start()
parameter to specify a function or method that provides an easing calculation. For a full
description of the available easing classes and methods see
method in a transition" on page
1238
TransitionManager class
method:
parameter for its constructor. The
content
TransitionManager.startTransition()
method, its use, and parameters, see
method; for more information, see
1244. The TransitionManager.start()
method, you use the easing property of the
1238.
method. The following code uses the
1246. A quick alternative to the
transParam
"Specifying an easing class and
method;

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents