Flexion 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
June 22nd, 2007 at 2:25 pm
I’m being quoted. Cool
March 12th, 2008 at 2:07 pm
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”);
};