Hello As3 community,
I know this is a question already answered a couple of time on various forum, but still,
I have a lil doubt in AS3 as there is several answers…
So finally what’s the best way to clear/empty the content of an array of numbers and make it ready for garbage collection?
And second doubt : Is there a different way to do so for an array of object or sprites?
By best way I mean, the fastest ( time to process it) but still clean enough to ensure it will not stay something which could delay or block the garbage collection to be done as soon as possible.
So far I used the way below:
array.length = 0;
I probably miss other ways, so feel free to complete it.