TRANSITION_END Dispatched on show and hide transitions....HELP!

Posted by franz1407 
TRANSITION_END Dispatched on show and hide transitions....HELP!
July 08, 2010 07:04PM
I have noticed that the event FLASHEFFEvents.TRANSITION_END is dispatched 2 times if I setup show and hide transitions
is there a way to have it just on the hide transition???

Thanks
Re: TRANSITION_END Dispatched on show and hide transitions....HELP!
July 09, 2010 08:46AM
TRANSITION_END is dispatched for each transition (show and hide). There is a property on transitionEnd event, transitionType that can help you to do that.
Here is an example:

myEffect.addEventListener(FLASHEFFEvents. TRANSITION_END, transitionEndHandler);

function transitionEndHandler(evtObj:FLASHEFFEvents):void {
if(evtObj.transitionType=="hide"){
trace(transitionEnd)
}
}
Sorry, you do not have permission to post/reply in this forum.