[flexcoders] Re: Events and Non-Display Objects

2007-11-30 Thread bithroop
nagers.SystemEventManager; > > > > SystemEventManager.getInstance().addEventListener("someEvent", > someEventHandler); > > > > //and somewhere else in your app > > SystemEventManager.getInstance().dispatchEvent(new Event("someEvent")); > >

[flexcoders] Re: Events and Non-Display Objects

2007-11-30 Thread bithroop
quot;someEvent", someEventHandler); > > //and somewhere else in your app > SystemEventManager.getInstance().dispatchEvent(new Event("someEvent")); > > Make sense? > > regards, > Muzak > > - Original Message - > From: "bithroop"

Re: [flexcoders] Re: Events and Non-Display Objects

2007-11-29 Thread Muzak
andler); //and somewhere else in your app SystemEventManager.getInstance().dispatchEvent(new Event("someEvent")); Make sense? regards, Muzak - Original Message - From: "bithroop" <[EMAIL PROTECTED]> To: Sent: Thursday, November 29, 2007 5:33 PM Subject: [flexco

[flexcoders] Re: Events and Non-Display Objects

2007-11-29 Thread bithroop
Jehanzeb - first, thank you for the detailed response! I really appreciate it. In the code you provided, the CustomEventDispatcher was instantiated within the mx:Application object. So from what I've seen, yes Application will be able to hear CustomEventDispatcher's events. However, my sitation i

[flexcoders] Re: Events and Non-Display Objects

2007-11-28 Thread tomeuchre
--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: ...BTW, I may be the only person in the world that distinguishes between a listener and a handler. This is one of many reasons I prefer PureMVC over Cairngorm -- the differentiation between the two, with their roles and

RE: [flexcoders] Re: Events and Non-Display Objects

2007-11-28 Thread Gordon Smith
ho can hear them? Yes, that's what addEventListener() is for. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bithroop Sent: Wednesday, November 28, 2007 1:51 PM To: flexcoders@yahoogroups.com Subject

Re: [flexcoders] Re: Events and Non-Display Objects

2007-11-28 Thread Jehanzeb Musani
Neither the object that dispatches the event nor the object that listens to that need to be in a display list. I am attaching herewith the code files that I wrote to test the same thing that you are asking. The event dispatcher is not the display object in my sample. The listeners are the function

[flexcoders] Re: Events and Non-Display Objects

2007-11-28 Thread bithroop
Thanks for the responses so far. I need to clarify what I'm asking I think. I realized after I wrote my post that since I had extended mx:object with MXML that I wouldn't be able to dispatch events from it. That really wasn't my issue though. Let's back up and say that I had extended EventDispatc