allora, non è troppo difficile da fare, basta usare un array in cui inserire i nomi dei clip da spostare in sequenza, poi abbiamo questo codice:
Codice PHP:
import mx.transitions.*;
import mx.transitions.easing.*;
var objs = [a, b, c];
var i:Number = 0;
var t:Object = new Tween(objs[0], "_x", Regular.easeOut, objs[0]._x, 450, 1, true);
t.onMotionFinished = function () {
i++;
if(i < objs.length){
this.obj = objs[i];
this.start();
} else {
this.onMotionFinished = null;
}
}
nel mio caso avevo tre palline sullo stage chiamate a,b,c che si muovono una dopo l'altra verso la stessa _x=450