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

有帮助吗?

解决方案

It looks like describeType does work but it doesn't show inherited events (metadata). So while the Spark Button seems to dispatch events all it's events are actually declaredin in it's super classes. Checking the ButtonBase class correctly shows some event metadata.

UPDATE: The previous code I posted here had some errors in it. I've updated the code and pasted it here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top