0

I thought that describeType would list the events an object dispatches but I don't see any listed in the describe type XML. Is there a way to list the events or am I missing something?

For example, on Spark Button there is "click", "mouseDown", "mouseUp", "focusIn", etc

4

1 回答 1

1

看起来 describeType 确实有效,但它不显示继承的事件(元数据)。因此,虽然 Spark Button 似乎在调度事件,但它的所有事件实际上都是在它的超类中声明的。检查 ButtonBase 类是否正确显示了一些事件元数据。

更新: 我在这里发布的之前的代码有一些错误。我已经更新了代码并将其粘贴在这里

于 2013-06-10T04:19:32.187 回答