So I made an array of fireballs and added them to the screen like this:
for (var i :Number = 0; i < fireballs; i++)
{
var mcFireball :fireball = array[i];
moveEnemy(mcFireball);
//array[i].moveEnemy();
}
I can't figure out how to remove them from the frame when I want to restart and how to make it so that if I run into them I lose. I have tried removeChild()
but I might be doing it wrong, I'm not sure. Do I need to make a new function that will use the array and then remove them that way? Also how do I make them hit detectable?`