Con questo codice muovo 2 mc con movimento decelerato.Codice PHP:
MovieClip.prototype.move = function(nx)
{
this.onEnterFrame = function()
{
var dx = (nx - this._x) / 2;
if(Math.abs(dx) <= 0.2){
this._x = nx;
delete this.onEnterFrame;
} else {
this._x += dx;
}
};
};
mc1.move(mc1._x + 200);
mc2.move(mc2._x - 300);
Quale modifica occorre introdurre per far si che il secondo mc parta quando il 1° è finito?