I want to Delay Mc2 to play a couple seconds behind Mc1.
Thanks for the Help.
MovieClip.prototype.moveMeX = function (posX,speed,alpha,) {
this.onEnterFrame = function () {
this._x += (posX - this._x) / speed;
this._alpha += (alpha - this._alpha) / speed;
if (Math.abs (posX - this._x) < 0.2) {
this._x = posX;
delete this.onEnterFrame;
}
}
}
mc1.moveMeX(300,2,100,);
mc2.moveMeX(300,2,100,);
Thanks for the Help.
MovieClip.prototype.moveMeX = function (posX,speed,alpha,) {
this.onEnterFrame = function () {
this._x += (posX - this._x) / speed;
this._alpha += (alpha - this._alpha) / speed;
if (Math.abs (posX - this._x) < 0.2) {
this._x = posX;
delete this.onEnterFrame;
}
}
}
mc1.moveMeX(300,2,100,);
mc2.moveMeX(300,2,100,);