var myArray:Array = new Array();
for(var i=0; i<10; i++){
var p:Particle = new Particle();
p.x = Math.random() * 250;
p.y = Math.random() * 250;
addChild(p);
myArray.push(p);
}
Hi,
I have this array of particles and I was wondering how can I add this particles inside a movieClip, in other
words I would like to add particle “p” to a movieClip that I have on the stage with an instance name of “mainMC”.
Also, is it possible to display the number of particles § inside mainMC in a text field? On this case I know it will be 10, but this will change.
Can some be so kind and show me how to do this?
Thanks a lot!