Hi all,
I'm curious if I need to clean up my event listeners before adding a duplicate one.
For example if I have an initialization routine

function init():void {
   addEventListener( Event.SomeEvent, $somehandler, false, 0, true );
   // some other stuff that builds the app/game
}

If I finish up what I'm doing and want to re-initialize my game or application, should I clean up my event listener before I add the exact same one?

So another way to ask this is if I do:

addEventListener( Event.SomeEvent, $somehandler, false, 0, true );
addEventListener( Event.SomeEvent, $somehandler, false, 0, true );

Do I have 2 event listeners at this point, or just one? Is it smart enough to not add an identical one?

thanks!
ben
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to