1 person found this helpful
I don't see where an array is going to make anything remain. Just having an instance created without removing it until you want it to go away is all you need.
I don't see much reason with what you are doing with that array either. First you assign a set of strings to it, then you replace those strings with instances of some Egg objects. Then you add all the eggs to the display at once in your init() function (not one at a time), or you remove them all from the array with your change Egg function... calling the init() function after emptying the array isn't going to yield much since the init() function uses the array.
So I might try placing three or more instances on the stage and changing thier visibility as I need to use them.
I'll keep playing with it but at least I'm getting more famiiar with Arrays.