Friday, March 26, 2010

tracing out listeners

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,

Derektracing out listeners
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.

No comments:

Post a Comment