You can't really debug the dispatch or watch from FB.  Best you can do
is, for displayObjects, set a capture phase listener on the
systemManager (assuming you aren't dispatching from there) and see if
that gets hit.  #1 reason your listener doesn't get hit is because you
aren't listening in the right place.  Other common issues are that you
aren't listening before the dispatch, or screwed up the name of the
thing you're listening for.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of shanedosch
Sent: Thursday, August 21, 2008 4:44 PM
To: [email protected]
Subject: [flexcoders] Debugging events and listeners

 

Hi everyone,

I am trying to debug a dispatchEvent call and not having much luck. I
have assigned event listeners to an object. I then dispatch an event,
with the proper event type, and then pfffff...nothing. Anyone to know
in the Flex Builder debugger how to add a watch for listeners? This
would really help me in determining if an object is properly
listening, or is the event is somehow not being captured.

Thanks in advance,
Shane

 

Reply via email to