Re: [Flashcoders] removing all listeners from a dpo

2008-07-20 Thread Juan Pablo Califano
Hi, You could try to do your own bookkeeping, so you know what listeners are registered to an EventDispatcher object. You can have one class to hold that info in a list and write a method that loops through that list and remove all registered listeners. You'd still have to override the

Re: [Flashcoders] removing all listeners from a dpo

2008-07-20 Thread Juan Pablo Califano
PD: I forgot to actually remove the eventListenerData from the list in the unregisterEventListener method of the Bookkeeper class. Looping backwards and adding _eventsList.splice(i, 1); should do it. Cheers Juan Pablo Califano 2008/7/20, Juan Pablo Califano [EMAIL PROTECTED]: Hi, You

Re: [Flashcoders] removing all listeners from a dpo

2008-07-20 Thread Juan Pablo Califano
PD2: this line should be removed from the unregisterEventListener() _dispatcher.removeEventListener(type, listener, useCapture); since it will cause an infinite loop and the eventListener has already been removed in the caller anyway. So, to sum up: public function

[Flashcoders] CS3: Test Movie vs. published swf (or, how to update test player?)

2008-07-20 Thread peter ginsberg
This isn't precisely related to AS3, but it's definitely something in my code in particular causing this issue. I'm working on an application (a game) that contains some pretty complicated AS3 code. It's a CS3 project, with a main .fla file and several sub .flas with their own classes. I don't