 |
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies


|
 |

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.
← Back Join us in the Flash forum.
| |
| Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map
Content copyright © 2013 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.
|
 |
|
 |