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
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
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
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
4 matches
Mail list logo