Take a look at the 'events' property of ComponentDescriptor. Each
UIComponent like Canvas and Button has 'descriptor' property for
accessing its UIComponentDescriptor, which extends ComponentDescriptor.
But this will only tell you about event handlers written as MXML
attributes.
 
If you need to know about all event handlers added using AS, I think
you'd have to recompile the framework with an override of
addEventListener() in UIComponent. But then you'll get all the event
handlers that the framework adds as well.
 
BTW, what are you trying to do with this?
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Guesdon
Sent: Tuesday, February 27, 2007 2:10 AM
To: [email protected]
Subject: [flexcoders] list of events really dispatched by a view



Hi to All,

I'm looking to get the list of events really connected in a view.

For example:

<mx:Canvas 
xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
creationComplete="dispatchEvent (new Event
('myViewCreationCompleteHandler'))" >

<mx:Button id="myButton" click="dispatchEvent (new Event
('myButtonClickHandler'))" /> 

</mx:Canvas>

So I would like to get 
[creationComplete , click] and [myViewCreationCompleteHandler ,
myButtonClickHandler]

In precedent version of actionscript I existed an attributes named
_listeners... but unfortunately this one has been deprecated...

Do you know if it exists a substitute?

Thanks in advance

Eric 



 

Reply via email to