I need the mc’s to sequentialy tween in instead of all tween in at once.
I have the array’s and destY set up correctly I believe, but the for loop just tweens them all.
var destYm = [0, 100, 200];
var mc_s = [b0, b1, b2];
var speed = 5;
MovieClip.prototype.slideIn = function() {
this.onEnterFrame = function() {
this._y += (this.destY-this._y)/speed;
if (Math.abs(this.destY-this._y)<1) {
this._y = this.destY;
trace('im deleted');
delete this.onEnterFrame;
}
if (this.destY == 200 && Math.abs(this.destY-this._y)<1) {
trace('im last');
}
};
};
for (i=0; i<mc_s.length; i++) {
mc_s*.destY = destYm*;
mc_s*.slideIn();
}