This should be easy for someone, I’m trying to attach a bunch of movieClips to the stage and have it animate this action using onEnterFrame.
everthing works but i would like all the mc’s to stay on the stage. right now it deletes the old one after it makes a new one.
var nStage:Number = Stage.width;
var nXpos:Number = 0;
var nCurrent:Number = 0;
onEnterFrame = function () {
if (nCurrent>=nStage/10) {
delete this.onEnterFrame;
} else {
attachMovie("mcStick", "newStick"+nCurrent, nCurrent);
["newStick"+nCurrent]_x = nXpos;
nXpos += 10;
_alpha = 10+Math.random()*40;
_y = random(Stage.height)/2;
_yscale = 50+Math.random()*100;
nCurrent += 1;
}
};
any help you could give would be wonderful - thank you