Flash AS3 EventDispatcher - any way of getting a list of registered listeners?

后端 未结 2 2117
忘了有多久
忘了有多久 2021-02-08 16:08

Is there any way of getting a list of registered listeners for an EventDispatcher?

I know that EventDispatcher has the hasEventListener

2条回答
  •  生来不讨喜
    2021-02-08 16:27

    Ok, so it seems that there is no answer to this question other than my original idea of storing listeners in a Dictionary and removing them explicitly. Oh well...

    Some interesting thoughts about the intricacies AS3 Events system can be found here.

提交回复
热议问题