I am trying to use the Tween class to first rotate an object and then after the rotation is finished, use a new tween to move the object off the screen. Here is my code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var barT:Tween = new Tween( this.loader_bar, “_rotation”, Elastic.easeOut, 0, 90, 1.5, true );
barT.onMotionFinished = function() {
trace( “onMotionFinished” );
barT = new Tween( this.loader_bar, “_y”, Regular.easeOut, 500, 800, 1.5, true );
}
The trace runs, just as expected, right after the first Tween completes. But the second Tween doesn’t work. What am I doing wrong?