RE: [flexcoders] dispatchEvent in AS class?

2005-05-03 Thread Erik Westra
: [flexcoders] dispatchEvent in AS class? Add this as a static member: static var mixIt = EventDispatcher.initalize(SocketManager.prototype); - Original Message - From: Sean McKibben [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, April 29, 2005 5:49 PM Subject: [flexcoders

Re: [flexcoders] dispatchEvent in AS class?

2005-05-03 Thread JesterXL
significantly less RAM. So, it is necessarey if you want a more efficient class. - Original Message - From: Erik Westra [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 03, 2005 7:18 AM Subject: RE: [flexcoders] dispatchEvent in AS class? static var mixIt

RE: [flexcoders] dispatchEvent in AS class?

2005-05-03 Thread Erik Westra
Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: dinsdag 3 mei 2005 16:43 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] dispatchEvent in AS class? Doing this: EventDispatcher.initialize(this); Puts the addEventListener, removeEventListener

Re: [flexcoders] dispatchEvent in AS class?

2005-05-03 Thread JesterXL
Nope, after my 2nd cup of coffee I understand, didn't know it was a Singleton, doh! :: hits self on head :: - Original Message - From: Erik Westra [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 03, 2005 10:49 AM Subject: RE: [flexcoders] dispatchEvent in AS class

Re: [flexcoders] dispatchEvent in AS class?

2005-05-03 Thread Joe Berkovitz
Westra [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 03, 2005 10:49 AM Subject: RE: [flexcoders] dispatchEvent in AS class? Hmm, I think u are missing the point that this class is a singleton and thus only instantiated once. The constructor is private

RE: [flexcoders] dispatchEvent in AS class?

2005-05-03 Thread Matt Chotin
] On Behalf Of Joe Berkovitz Sent: Tuesday, May 03, 2005 2:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] dispatchEvent in AS class? I understand that it's a mixin, and how to mix it in, but I seem to remember Matt C. telling me that it could also just be directly extended. I'll

[flexcoders] dispatchEvent in AS class?

2005-04-29 Thread Sean McKibben
I'm trying to wrap an XMLSocket object in a singleton class to manage my (single) XMLSocket connection, but I can't seem to get it to throw any events. Is it that I need to put it into my .mxml file as a component or something? Right now it is just an actionScript class. I was wanting to stick

Re: [flexcoders] dispatchEvent in AS class?

2005-04-29 Thread Jeff Tapper
You need access to the EventDispatcher, which is natively mixed in with any UIObject subclass (which is why all MXML components can use it. You can either subclass your class from UIObject, or initialize the Event Dispatcher with your class. The latter would look like this: import

Re: [flexcoders] dispatchEvent in AS class?

2005-04-29 Thread JesterXL
Add this as a static member: static var mixIt = EventDispatcher.initalize(SocketManager.prototype); - Original Message - From: Sean McKibben [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, April 29, 2005 5:49 PM Subject: [flexcoders] dispatchEvent in AS class? I'm