How can I populate more objects and move them

Hi,

I’m trying to understand Array and For Loops and they started to make sense. I have this code that generates 100 drops and moves them down but I would like to populate more and more move them down and delete them after crossing the stage (Y direction)…

Can someone please show me how to do this?

This is for learning purposes only.

Thanks

[AS]var rainDropArray = new Array();

for(var i:int=0; i<100; i++) {
var rainDrop:RainDrop = new RainDrop();
rainDrop.x = Math.random() * 550;
rainDrop.y = Math.random() * 550;
addChild(rainDrop);
rainDropArray.push(rainDrop);
}

this.addEventListener(Event.ENTER_FRAME, moveDrops);

function moveDrops(e:Event):void
{
for(var i:int=0; i<100; i++) {
rainDropArray*.y += 1;
}
}[/AS]