Hi!
I duplicated a movieclip with the following code:
[color=blue]for (i=1; i <= 11; i++) {
for (j = 1; j <= 1; j++) {
bgmask.mask0.duplicateMovieClip(“mask” + n, n);
bgmask[“mask” + n]._x = 20;
bgmask[“mask” + n]._y = 30;
bgmask[“mask” + n].onEnterFrame = function() {
if (this.active == true) {
this._x += Math.random()(30-10)
this._y += Math.random()(1-0)
this._rotation += Math.random()*(30-10)
}
}
n+=1;
}
}[/color]
Now, i’d like to remove all the duplicants on the previous frame to be able to loop this action, but im not sure how to go about it. Could you help me out? Its pretty urgent.
thanks a lot! :hat: