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”);
}



[...] CS3 TransitionManager issue AS3 Flexion wrote: Recently I had an issue with AS3 and it’s TransitionManager class. It seems to me that it [...]
By: Flash CS3 TransitionManager issue AS3 « Flash Enabled - Get Ready With Flash… on June 21, 2007
at 10:12 am
I agree, details the Transistion Manager class and it’s events are well hidden, and scarce on the net.
Details can be referenced by using the CS3 help system, and selecting the ActionScript 3.0 Components > All Classes > TransitionManager class, however there is no info on the triggered events.
For info on AS2 triggered events then I suggest that in the Help system you select ActionScript 2.0 Components > ActionScript 2.0 Components Language Reference > TransitionManager class > TransitionManager class summary and review the page.
I had a heck of a time instansiating and handling the TransitionManager events inside a function (in AS2) – couldn’t get it running very well so i opted to use the Tween class instead and achieved the same result with much less code.
Enjoy!
Dave
By: SikDave on July 2, 2007
at 2:46 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”);
};
By: Robert on March 12, 2008
at 1:03 pm
Yes the documentation is imperfect in this case.
here is a way to make to explore the events. check the
%flash_install%/%language%/Classes/mx/transitions
folder to take a short look into the source files Transition.as, TransitionManager.as to see which events are supported.
Hope that helps.. greetz
By: metashock on May 5, 2008
at 4:23 pm
in detail xplonation abt tutorials,
thank u
By: uma kanth on July 1, 2008
at 6:40 am