Hi Guys,
I seem to have a problem with the tweenMax.updateTo method.
Given this sample code:
_tween = new TweenMax(myMc,2,{rotation:360,repeat:-1,onUpdate:onUpd, ease:Linear.easeNone});
function onUpd():void{
if(_stop){
_tween.updateTo({repeat:1,rotation:_angleToStop, onComplete:onF},true);
}
}
I am expecting the _tween to update
1. its rotation value to the predetermined value in _angleToStop
2, repeat count to change from infinity (-1) to 1
3. for it to call the onComplete method once that 1 rotation is done, where it stops in the correct value;
What actually happens is the spinning starts to slow down as i would expect as it is reaching the target value however it then start animating again... Its like the repeat is not working..
Could anyone help me?
Seems weird.
Thanks,
Bynho