Flash CS3 fl.transitions Class Parameters

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 →

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.





RSS
Related Articles
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map








Content copyright © 2019 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.