Skip navigation
iamfuric
Currently Being Moderated

Wildcard event type

Jul 13, 2009 12:10 AM

Hello  all

Is there such thing as wildcard event type ?

I need event listener for EACH AND EVERY event in the application:

 

application.addEventListener("*",myHandler)

 

Thanks

 
Replies
  • Currently Being Moderated
    Jul 13, 2009 5:56 AM   in reply to iamfuric

    No.

     

    If it was an ActionScript project you would have to import the class and reference it somewhere in the project for the class to be compiled in  -- which adds to swf file size.

     

    In Flex, by referencing the event in a tag  -- that is probably the reference to compile it in.

     

    <Button click="myClicker()" />

     

    implied

    import flash.events.MouseEvent.CLICK;

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2013 1:46 AM   in reply to iamfuric

    I am currently looking into changing how EventDispatcher works using prototyping so when it dispatches an event, it will also dispatch the same event with the "*" type too,

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2013 6:25 AM   in reply to _WORMSS_

    I need event listener for EACH AND EVERY event in the application

     

    That sounds like a performance nightmare. Why do you need such a facility?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2013 7:45 AM   in reply to pauland

    Debugging undocumented components. Dont worry, I was not planning this for a live product. But it would be extremely useful to either A, lsiten for ALL events with 1 command such as _someObj.addEventListener("*", debugEventHandler); or as part of EventDispatcher().dispatchEvent(blarblar) have it trace/log out automatically, for EVERY EVENT.. EVER. Yes, an eventlog may get very big very fast, I would prob end up putting in a filter function such as EnterFrame but It would be great to just have the option for those bugs that are deep in either Flash's Own code (yes, they exist) or 3rd party components.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points