TwelvestoneFlash

garbage collection via Event.REMOVED_FROM_STAGE


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
baron ruhstoff
 
2008-07-22

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.
TwelvestoneFlash

garbage collection via Event.REMOVED_FROM_STAGE