Trigger a function when a transition is complete?
I am creating an intro where a sequence of tweens and transitons are triggered. The problem is that I can't figure out how to get an event to happen when a transition is complete. How can I get "headTitleTm" to trigger the "sigIn" function once it is done?
Thanks!
Code:
function headTitleTransition(event:TweenEvent):void{
var headTitleTm:TransitionManager = new TransitionManager(headTitle);
headTitleTm.startTransition({type:Photo, direction:Transition.IN, duration:.20, easing:None.easeNone});
headTitleTm.addEventListener(Event.COMPLETE, sigIn);}
function sigIn(e:Event):void{
trace('sigIn');
}