: [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
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
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
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
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
] 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
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
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
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
9 matches
Mail list logo