Hi, I would like to know how to stop a running tween when rollingOver a sprite. I used to stop the tween on as2, but I don’t know how to acces the running tween on as3 because of the var statement before the tween name.
I guess the score is modifying the 2 lines:
over_handler1.stop();
over_handler2.stop();
My code is this one:
function fc_hitOver(e:MouseEvent):void {
var lastActive:String=e.target.name;
var numberID:String=lastActive.substr(-1,1);
var tweenTarget:String="mc_over"+numberID;
this[tweenTarget].alpha=1;
over_handler1.stop();
over_handler2.stop();
var over_handler1:Tween=new Tween(this[tweenTarget],"scaleX",Elastic.easeOut,0,1,1.5,true);
var over_handler2:Tween=new Tween(this[tweenTarget],"scaleY",Elastic.easeOut,0,1,1.5,true);
}
Thanks!!