Up to now, I've been using calling objWhatever.someDisposalMethod() to handle garbage collection for display objects: public function dispose():void{ // delete everything this.parent.removeChild(this); }
Methinks I could make the call automatically with Event.REMOVED_FROM_STAGE. Anything quirky about that particular event I should know?
// edit: The first thing that comes to mind is that the method will be called after the object is removed from the stage rather than before (as I'm doing currently), so removing stage listeners might be kind of sticky.
Sorry, you must be a member to post to a conversation. Either
log in or
sign up
to get involved.