I ( I admit quickly) looked through the tutorial secion and didnt find an answer to this.
example of my for statements: for (var i:Number = 0; i < Array.length; i++) {
I have a game with several for loops, some are even nested within each other! this causes major lag as you continue playing, mainly because the loops are based on arrays which grow as the game plays. Such as enemys spawning and such, but since the enemys die. I dont need the loop to go through it for the dead enemies, so my question is, since the loop is relying on the .length property of the array, how i can make it so the for statement only goes through the last 5 enemies that have been spawned?