Iris transition

ActionScript Class Name mx.transitions.Iris

Parameters

startPoint An integer indicating 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.

shape A mask shape of either mx.transitions.Iris.SQUARE (a square) or mx.transitions.Iris.CIRCLE (a circle).

Description

A transition effect: Reveals the movie clip object by using an animated mask of a square shape or a circle shape that zooms in or out.

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

Example

The following code creates an instance of TransitionManager that applies the Iris transition with a startPoint from the center (5) and a masking shape of mx.transitions.Iris.CIRCLE. The content target of the transition is the movie clip img1_mc. The TransitionManager applies a direction of mx.transitions.Transition.IN over a duration of 2 seconds with an easing of Strong with an emphasis on the easeOut by specifying the mx.transitions.easing.Strong.easeOut easing calculation method.

import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});