Piers Cowburn skrev:
That way, if I forget to remove the event listener in a destroy method or 
whatever, it should still end up eligible for GC.

Cases where the event doesn't fire because a weak reference was used only 
happen if there are no strong references anywhere else, so the object rightly 
gets GC'd
One cannot be sure that the object get GC'd right away or at all. lets say you have a movieclip with a weak ENTER_FRAME listener on itself. the movieclips references are all removed. The ENTER_FRAME could still be dispatched, and is out of your control. However i think it's a good practice to use weak eventlisteners.

/Christoffer
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to