Re: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-17 Thread Josh McDonald
Which is what makes it so great for what I want to know :D Also, *exactly* what I need to implement some framework voodoo I need next week. -Josh On Thu, Jul 17, 2008 at 3:51 PM, Alex Harui [EMAIL PROTECTED] wrote: And it won't catch everything. MouseEvents and other events dispatched from

RE: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-17 Thread Gordon Smith
The dispatchEventHook will only catch events dispatched by UIComponents. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Wednesday, July 16, 2008 9:34 PM To:

RE: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-17 Thread Gordon Smith
you can't have one function to catch events for one type of component and another to catch a different component's events You just do if (target is Button) ... else if (target is ComboBox) ... BTW, dispatchEventHook is mx_internal, so use it at your own risk. It could go

[flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread reflexactions
Well you can at least catch all events dispatched on a particular component, and without subclassing or patching. You assign a callback function to the dispatchEventHook property. It takes two params the event and the target and is called immediately prior to the actual dispatch. --- In

Re: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread Josh McDonald
Cool, I didn't know about that, cheers :) On Thu, Jul 17, 2008 at 2:10 PM, reflexactions [EMAIL PROTECTED] wrote: Well you can at least catch all events dispatched on a particular component, and without subclassing or patching. You assign a callback function to the dispatchEventHook

Re: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread Doug McCune
Oh snap! I learn something new everyday. Thanks for that tidbit. I just looked up that function and it's actually a static function on UIComponent, so you only get to set that once (ie you can't have one function to catch events for one type of component and another to catch a different

RE: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread Alex Harui
And it won't catch everything. MouseEvents and other events dispatched from the player don't call that dispatchEvent hook. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug McCune Sent: Wednesday, July 16, 2008 10:26 PM To: