The web site for Flash ActionScript 3.0 game developers

 
         
   

Garbage Collection Strategy for an Array of Data Objects

So I create an array and then create several data objects with various properties . . . adding each data object to the array. (see page 125)

I am looking for a good strategy to remove the data objects from the array and make them available for garbage collection.

I will be reusing the array to add further data objects.

Any thoughts? I have tried several different strategies within a current project without success . . . getting a major memory overload.

Tony



Copyright Gary Rosenzweig