Hi Gordon,
Is this a documented behaviour or just the current implementation?
Where can we find the documentation?
Cheers
Ralf.
On 2/9/07, Gordon Smith [EMAIL PROTECTED] wrote:
Didn't I read somewhere that the order you add listeners is the order
they get dispatched in as3 now?
[mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Friday, February 09, 2007 12:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML
Hi Gordon,
Is this a documented behaviour or just the current implementation
Sent: Friday, February 09, 2007 9:58 AM
To: flexcoders@yahoogroups.com
Cc: DL-Flash Player IMD
Subject: RE: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML
It should be documented, but I'm not sure that it is. I can't find it in
the ASDoc, for example, which doesn't
@yahoogroups.com
Cc: DL-Flash Player IMD
Subject: RE: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML
It should be documented, but I'm not sure that it is. I can't find it in
the ASDoc, for example, which doesn't seem to discuss the case of
registering multiple listeners for the same
:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML
Nope, I think the second parameter must be a function, trying to pass an
array of functions should fail.
Also, just a note: it's better practice to not use the string
Yes that's possible, but semantically it is slightly different.
Inside the binding tag, the sequence of function calls is given by the
sequence in your code.
If you use mulitple addEventListener calls the sequence is not guaranteed.
Another possibility, which maintains the sequence, would be to
removing this listener would be tricky however.
On 2/8/07, Ralf Bokelberg [EMAIL PROTECTED] wrote:
Yes that's possible, but semantically it is slightly different.
Inside the binding tag, the sequence of function calls is given by the
sequence in your code.
If you use mulitple
Ralf,
That is an interesting approach.
I just have never had the need for something like that.. yet.
Didn't I read somewhere that the order you add listeners is the order they
get dispatched in as3 now? Plus you can use priorities.
PS From an OOP standpoint, I wouldn't do it , I would just
Yes Johannes Michael
I'm not using it either.
I just wanted to show what is possible.
Since i don't use code behind, i don't have this kind of problems anyways ;)
Cheers,
Ralf.
On 2/8/07, Michael Schmalle [EMAIL PROTECTED] wrote:
Ralf,
That is an interesting approach.
I just have
: Object.addEventListener vs.. adding them
inline via MXML
Yes Johannes Michael
I'm not using it either.
I just wanted to show what is possible.
Since i don't use code behind, i don't have this kind of problems
anyways ;)
Cheers,
Ralf.
On 2/8/07, Michael Schmalle [EMAIL PROTECTED
You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.
So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
: Object.addEventListener vs.. adding them
inline via MXML
You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.
So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK
flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML
You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.
So something like:
myButton.addEventListener
: Object.addEventListener vs.. adding them
inline via MXML
You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.
So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener
Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML
You can make as many calls to addEventListener as you want. So you can
add 2 or more event
[mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com] On
Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
16 matches
Mail list logo