Equivalent of describeType for Flex Component EVENTS

Posted by Joshua on Stack Overflow See other posts from Stack Overflow or by Joshua
Published on 2010-06-11T01:22:32Z Indexed on 2010/06/11 2:52 UTC
Read the original article Hit count: 319

Filed under:
|
|
|

Using "introspection" In Flex I can say:

  var classInfo:XML=describeType(SomeObject);

Which will list for me the Accessors, Methods And Variables. (http://livedocs.adobe.com/flex/3/html/help.html?content=usingas_8.html)

But what is the equivalent to programmatically inspect all of an object's possible EVENTS?

(NOT JUST the events for which event listeners have been set, but to somehow step through a list of all VALID EVENTS for which event listeners may POTENTIALLY be set -- I realize that such lists are readily available online, and that's great for cases when I know the object's type at design type, but I require some way to inspect any given displayobject programmatically at runtime, and determine what events, if any, are or may be associated with it.)

© Stack Overflow or respective owner

Related posts about flex

Related posts about flash