g
Printer Friendly Version

editor  
BellaOnline's Flash and Animation Editor
 

Flash CS3 fl.transitions Class Parameters

In this tutorial, we will take a look at the rest of the transitions in the fl.transitions package for FlashR CS3. Last time, we examined the transitions that used the basic code for the TransitionManager.start() method which creates a TransitionManager instance, applies the transition effect to the object of your choice and starts the transition.

Now, we want to take it a step up and look at the extra class parameters needed for these transition effects. Each of these transitions has its own class parameters that you can use to refine the effect.

  • Blinds Transition

    import fl.transitions.*;
    import fl.transitions.easing.*;

    // apply Blinds transition
    TransitionManager.start(photo_mc, {type:Blinds, direction:Transition.IN, duration:5, easing:None.easeNone, numStrips:20, dimension:1});

    As you can see, the Blinds effect takes two class parameters. The numStrips parameter sets the number of horizontal or vertical lines that are used to create the effect. This can be an integer between 1 - 50. The dimension parameter sets the strips to horizontal (0) or vertical (1).

  • Fly Transition

    import fl.transitions.*;
    import fl.transitions.easing.*;

    // apply Fly transition
    TransitionManager.start(photo_mc, {type:Fly, direction:Transition.IN, duration:5, easing:None.easeNone, startPoint:1});

    The Fly effect takes one class parameter. The startPoint parameter determines the starting point for the effect. You can set the startPoint to an integer from 1-9 as follows.

    1 top left
    2 top center
    3 top right
    4 left center
    5 center
    6 right center
    7 bottom left
    8 bottom center
    9 bottom right

  • Iris Transition

    import fl.transitions.*;
    import fl.transitions.easing.*;

    // apply Iris transition
    TransitionManager.start(photo_mc, {type:Iris, direction:Transition.IN, duration:5, easing:None.easeNone, startPoint:5, shape:Iris.CIRCLE});

    The Iris effect takes two class parameters. The startPoint parameter is controlled by an integer 1 9 as in the Fly effect. The shape parameter controls the shape of the mask. It can be set to CIRCLE or SQUARE.

Next →
Join us in the Flash forum.




Flash and Animation Site @ BellaOnline
View This Article in Regular Layout

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.



| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor