Garbage Collection Woes in Flash

Flash Add comments
I've been fighting GC in flash for the last two weeks. The standard answers (no timers, intervals, enterFrame listeners, strong references) do not apply. (And we also tried FP11, which theoretically gets rid of all of this for you anyway.) But I did run across a few nice event listener manger classes. Grant Skinner has his Janitor class (which I found attached to an online presentation). But even more impressive was Danny Miller's EventManager class ( which is available on google code. Unfortunately, neither of these helped my situation; we were using a standard button component on the stage in a nested MC. If we didn't need it, we pitched it via removeChild() and nulled out the reference to it. Unfortunately, that was not sufficient, preventing the swf from unloading. So we are now building our own button class. grrrrr

1 response to “Garbage Collection Woes in Flash”

  1. Weblink Says:
    You can get many sample projects and writing materials from the internet and other resources. Many useful references are available on the internet. You can get simple and easy project guidelines.

Leave a Reply

Powered by Mango Blog. Design and Icons by N.Design Studio