Flash CS3 TransitionManager issue AS3
by Carlos Pinho, June 21st, 2007

flash_cs3_63x63.gifFlexion wrote:

Recently I had an issue with AS3 and it’s TransitionManager class. It seems to me that it is a little undocumented. I searched all the web for a way to capture the allTransitionsInDone event. First of all it doesn’t appear in class’ or inherited events but it exists!!!

The thing is to start your transition using a TransitionManager instance and then add the event listener:

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

var tm:TransitionManager = new TransitionManager(img1_mc);
tm.startTransition({type:Fade, direction:Transition.IN, duration:2, easing:Strong.easeOut});
tm.addEventListener(”allTransitionsInDone”, done);

function done(evt:Event):void {
trace(”done”);
}

Brgds,
CP


ShareThis

2 Responses to “Flash CS3 TransitionManager issue AS3”

  1. smackme Says:

    I’m being quoted. Cool :)

  2. Canada Says:

    I know this works in AS2. Hope this help someone.

    theTM.transitionOutDone = function():Void {
    trace(“Transition Out Is Done”);
    };

    theTM.transitionInDone = function():Void {
    trace(“Transition In Is Done”);
    };

Let leave a Comments for this post.

Close