Fly transition

ActionScript Class Name mx.transitions.Fly

Parameters

startPoint An integer that indicates a starting position; the range is 1 to 9:

Top Left, 1; Top Center, 2; Top Right, 3; Left Center, 4; Center, 5; Right Center, 6; Bottom Left, 7; Bottom Center, 8; Bottom Right, 9.

Description

A transition effect: Slides the movie clip object in from a specified direction.

This class is used by specifying mx.transitions.Fly as a transObject.type parameter for the TransitionManager class.

Example

The following code creates an instance of TransitionManager that applies the Fly transition with a startPoint set to the bottom right (9). The content target of the transition is the movie clip img1_mc. The TransitionManager instance applies a direction of mx.transitions.Transition.IN over a duration of 3 seconds with an Elastic.easeOut easing effect.

import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Fly, direction:Transition.IN, duration:3, easing:Elastic.easeOut, startPoint:9});