views:

28

answers:

1

Hello all,

I wanted to ask any Flash gurus here if they have any best practices for troubleshooting Flash (custom) Events. I'm currently dealing with a couple of events that are supposedly being dispatched but never caught by the corresponding listeners.

Here is the list of things I've already checked for:

  • Event names are defined as a String const in the custom event and the event name is used in the listener.
  • Checked for Event bubbling (as explained here).

If anyone has any suggestion, It will be much appreciated.

+1  A: 

I believe most frequent mistakes are: 1. Event listener added after event being already dispatched. 2. Non-overriden clone() and toString() methods for custom event. 3. Simply listening wrong objects/wrong events.

Pavel fljōt
Add to that list, not knowing how events propagate. :P
dornad