Could you do?
SomeMovieClip.removeListener(someListener);
removeChild(SomeMovieClip);
SomeMovieClip = null;
No need to wait for the trash man.
Again, I am still thinking in AS2. Not sure of AS3 equivalent.
Karl
Sent from losPhone
On Jan 6, 2010, at 4:19 PM, ktt <[email protected]> wrote:
Hello,
After
removeChild(SomeMovieClip);
SomeMovieClip = null;
it will removed and will wait for garbage collector.
But maybe it is better to remove most unwanted listeners before
nullifying the MovieClip and not wait for garbage collector?
It should save some memory space and time for actually "working"
MovieClips and Events.
What do you think?
Ktt
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders