Question

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

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top