Class Parameters for Flash CS3 fl.transitions
- PixelDissolve Transition
import fl.transitions.*;
import fl.transitions.easing.*;
// apply PixelDissolve transition
TransitionManager.start(photo_mc, {type:PixelDissolve, direction:Transition.IN, duration:5, easing:None.easeNone, xSections:50, ySections:50});
The PixelDissolve effect takes two class parameters. The xSections parameter can be an integer from 1 – 50 and sets the number of small masks on the horizontal axis. The ySections parameter does the same for the vertical axis. - Rotate Transition
import fl.transitions.*;
import fl.transitions.easing.*;
// apply Rotate transition
TransitionManager.start(photo_mc, {type:Rotate, direction:Transition.IN, duration:5, easing:None.easeNone, ccw:false, degrees:1080});
The Rotate effects needs two class parameters. The ccw parameter sets the rotation to counter clock wise if the boolean value is set to true and clock wise if set to false. The degrees parameter is an integer between 1 – 9999 and determines the amount of rotation. For example, to rotate the object three times, I have set this parameter to 360 x 3 which is 1080. - Squeeze Transition
import fl.transitions.*;
import fl.transitions.easing.*;
// apply Squeeze transition
TransitionManager.start(photo_mc, {type:Squeeze, direction:Transition.IN, duration:5, easing:None.easeNone, dimension:0});
The Squeeze class parameter is dimension and can be an integer 0 or 1. If set to 0, the effect will be horizontal and vertical, if set to 1. - Wipe Transition
import fl.transitions.*;
import fl.transitions.easing.*;
// apply Wipe transition
TransitionManager.start(photo_mc, {type:Wipe, direction:Transition.IN, duration:5, easing:None.easeNone, startPoint:6});
The Wipe effect takes the startPoint class parameter which controls the starting point for the effect. As above, the integer can be 1 – 9.
Copyright 2018 Adobe Systems Incorporated. All rights reserved. Adobe product screen shot(s) reprinted with permission from Adobe Systems Incorporated. Adobe, Photoshop, Photoshop Album, Photoshop Elements, Illustrator, InDesign, GoLive, Acrobat, Cue, Premiere Pro, Premiere Elements, Bridge, After Effects, InCopy, Dreamweaver, Flash, ActionScript, Fireworks, Contribute, Captivate, Flash Catalyst and Flash Paper is/are either [a] registered trademark[s] or a trademark[s] of Adobe Systems Incorporated in the United States and/or other countries.
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map
Follow @ArtAnimationTut
Tweet
Content copyright © 2023 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Diane Cipollo for details.