Groups | Blog | Home
all groups > flash actionscript > march 2007 >

flash actionscript : tracing out listeners


drudd411
3/29/2007 6:55:29 PM
Hello all,
i am wondering if there is a way to trace out registered listeners and also
all broadcasts. I have a few classes linked together with some listeners setup
but one is not working and wondering if it is linked correctly, scoped
correctly, whether the listener is registered, and if it is broadcasting.

thanks,
Derek
MotionMaker
4/3/2007 12:00:00 AM
Do you mean the AS2.0 EventDispatcher class?
I have not found a way to trace the listeners. They fail silently. However the
one that is failing is likely isolated to the listening class or the
broadcaster.

1. Be sure you have the imports
import mx.utils.Delegate;
import mx.events.EventDispatcher;
2. Use the Delegate.create to specify the functions and use the this variable
for both arguments.

AddThis Social Bookmark Button