| Language Version: | ActionScript 3.0 |
| Product Version: | Flash CS3 |
| Runtime Versions: | Flash Player 9, AIR 1.0 |
The Iris class reveals the movie clip object by using an animated mask of a square shape or a
circle shape that zooms in or out. This effect requires the
following 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 fl.transitions.Iris.SQUARE (a square) or fl.transitions.Iris.CIRCLE (a circle).
For example, the following code uses a circle-shaped animated mask transition for the movie clip
instance img1_mc:
import fl.transitions.*;
import fl.transitions.easing.*;
TransitionManager.start(img1_mc, {type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});