Transitionmanager.starttransition() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following code uses the
method to create an instance of
TransitionManager.start()
TransitionManager and assigns an Iris transition to a movie clip called img1_mc. The
method contains two parameters. The first parameter,
TransitionManager.start()
, is the MovieClip object that the transition effect will be applied to. The second
content
parameter for the
method,
, contains an object
TransitionManager.start()
transParam
that holds a parameter collection. This object that contains a parameter collection first
designates the type of transition effect with the
parameter, followed by the
type
direction,
and
parameters. The
,
,
and
duration,
easing
type
direction
duration,
easing
parameters are required information for all TransitionManager effects. Following the
easing
parameter are any parameters that the transition type specifically requires. In the following
example, the Iris transition is the type of transition, and the Iris transition requires the
and
parameters (for more information about the Iris transition
startPoint
shape
parameters, see
"Iris transition" on page
1252):
import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN,
duration:5, easing:Bounce.easeOut, startPoint:5, shape:Iris.CIRCLE});

TransitionManager.startTransition()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
transitionManagerInstance.startTransition(transParams)
Parameters
A collection of parameters that are passed within an object.
transParams
1246
TransitionManager class

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents