> You should clean up your event listeners when you remove the children. > As long as a reference exists on those children they will never be > garbage-collected.
Is there an easy, standard way to do this? I've tried using the removedFromStage event, but that event gets fired when an AIR/Flex app is minimized for some reason. I added an if-block checking if the app was minimized, but I'm not comfortable with this, just in case there are other times when removedFromStage is fired when it isn't removed from stage. P.S. Craig's original email was only sent to me, so I've repeated it below - nothing personal/confidential there, so I assumed it was a mistake. 2009/1/7 craig.drabik <[email protected]>: > You should clean up your event listeners when you remove the children. > As long as a reference exists on those children they will never be > garbage-collected. > > A weak reference on the event listener will work, but it's good > practice to remove the event listeners.

