MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1259

Components language reference
Table of Contents

Advertisement

Example
The following code creates an instance of TransitionManager that applies the Rotate
transition clockwise 720 degrees (two full revolutions). The content target of the transition is
the movie clip img1_mc. The TransitionManager instance applies a direction of
mx.transitions.Transition.IN
so that the transition starts slowly, speeds up, and then ends slowly.
Strong.easeInOut
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Rotate, direction:Transition.IN,
duration:3, easing:Strong.easeInOut, ccw:false, degrees:720});
Squeeze transition
ActionScript Class Name
Parameters
An integer that indicates the Squeeze effect should be horizontal (0) or
dimension
vertical (1).
Description
A transition effect: Scales the movie clip object horizontally or vertically.
This class is used by specifying
parameter for the TransitionManager class.
Example
The following code creates an instance of TransitionManager that applies the Squeeze
transition with a
dimension
transition is the movie clip img1_mc. The TransitionManager applies a direction of
mx.transitions.Transition.IN
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});
Wipe transition
ActionScript Class Name
Parameters
An integer that indicates a starting position. Range of 1 to 4 and 6 to 9:
startPoint
over a duration of 3 seconds with an easing set to
mx.transitions.Squeeze
mx.transitions.Squeeze
integer specified as vertical (1). The content target of the
over a duration of 2 seconds with an Elastic easing effect
mx.transitions.Wipe
as a
transObject.type
Transition-based classes
1255

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents