Hey guys, I’ve been trying to run a function after a tween has been completed using gtween. Somehow it doesn’t call the function, any idea why?
import com.gskinner.motion.*;
import flash.events.Event;
import fl.motion.easing.*;
var myTween= new GTween(my_mc, 2, {x:50, alpha:0}, {ease:Sine.easeInOut});
myTween.addEventListener(Event.COMPLETE, tweenCompleted);
function tweenCompleted(e:Event):void{
trace("Tween Completed.");
}
i can’t figure out the problem at all, can anyone see if there’s something wrong?