Posted by: smackme | June 12, 2007

Flash CS3 TransitionManager issue

Recently I had an issue with AS3 and its 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”);
}

Posted by: smackme | April 26, 2007

Hello world!

« Newer Posts

Categories