Use binding?
Gregor Kiddie
Senior Developer
INPS
Tel: 01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/
The
is it Watcher that you're looking for?
something along these lines :
(warning - straight off the top of my head so could well be wrong in detail at
least. best check the docs)
private function addWatcher():void
{
ooops, maybe that should be ChangeWatcher.
Apologies, I've just got off a 14 hour overnight flight in cattle class I'm
afraid!
-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jim Hayes
Sent: Tue 11/3/2009 12:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders
Why don't you use custom events? I use standard events in my components only
in situations like something is changed - we notify about it using
Event.CHANGE. But in most custom components custom events used (especially
if some event specific information is sent along with it).
R.
On 6/5/07,
Just guessing, but your DataVO doesn't extend
EventDispatcher, only Object; try extending him so you'll get all the
addEventListener/removeEventListener/dispatchEvent functions.
- Original Message -
From: John
Crosby
To: flexcoders@yahoogroups.com
Sent: Wednesday, November 02,
y, November 03, 2005 8:14 AMTo:
flexcoders@yahoogroups.comSubject: Re: [flexcoders] dispatchEvent
troubles (Flex 2.0)
Just guessing, but your DataVO doesn't extend
EventDispatcher, only Object; try extending him so you'll get all the
addEventListener/removeEventListener/dispatchEvent functions.
Er, don't know G, haven't done binding in Flex 2
yet, sorry!
- Original Message -
From: John
Crosby
To: flexcoders@yahoogroups.com
Sent: Thursday, November 03, 2005 11:31 AM
Subject: RE: [flexcoders] dispatchEvent troubles (Flex
2.0)
Thanks!
That removed the compile error
componentName eventName=clicked(event.param)/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stanislav Zayarsky
Sent: 22 August 2005 15:15
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dispatchEvent with parameter
Dear Flex Coders,
I
Wow, It's working! Thanks a lot Allen! :)
On 8/22/05, Allen Manning [EMAIL PROTECTED] wrote:
componentName eventName=clicked(event.param)/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stanislav Zayarsky
Sent: 22 August 2005 15:15
Hey np.
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stanislav Zayarsky
Sent: 22 August 2005 16:00
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] dispatchEvent with parameter
Wow, It's working! Thanks a lot Allen! :)
On 8/22/05
: [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
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
18 matches
Mail list logo