myroot.childInstanceName.removeEventListener(Event.WhateverEvent, whatEverFunction);
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ktt Sent: woensdag 16 september 2009 8:31 To: Flash Coders List Subject: [Flashcoders] How to set children to null? Mysterious garbage collector question Hello, I'm removing children of movieclip with: var count:int = myroot.numChildren; for (var i:int=0; i<count; i++) { myroot.removeChildAt(0); } How to set children to null? All children have listeners, do I need to remove(set to null) them as well? It seems memory managing process is not very well documented.. Regards, K _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

