Get all event listeners for a specific component

I have an application in flex, it has some components out of the box and quite a few custom components and events.

I want all event listeners on a specific component at runtime, I know how to do this by decapitating the frame, but I don’t want to use the monkey patch, and I cannot rely on this in the production process.

Is there any way?

+3
source share
2 answers

EventDispatcher has a pretty thin open interface:

  • addEventListener
  • dispatchEvent
  • hasEventListener
  • removeEventListener
  • willTrigger

, . , .

, , . . , , .

+2

. addEventListener . , . Flex , , , .

+2

Source: https://habr.com/ru/post/1751356/


All Articles