|
instead of focusing on what you don't understand, let's focus on what you
do and build from there.
Listeners are used to execute code when an event occurs. Each
event has a set of method corresponding to the events that is wants to
listen for.
The listener's methods are passed a paramater 'e'. this object
'e' has a method setBubble.
So, in you listener, place the code:
e.setBubble(false);
and you will not stop the event from bubbling.
For a more detailed explanation, check out pascal's tutorials on the
dynapi. this is a good source of info for starting out with the api.
Nicolas MASSART wrote:
Hello all !
I realy dont understand (after a long time of DynAPI use...) what "BUBBLE"
is ?
The documentation is not very clear about this event thing...
See you.
Nicolas
Richard Bennett wrote:
You
use it in an eventlistener like this: e.setBubble(false);
Check the source code of buttonimage.js
, which does much the same as you are talking about. Cheers,
Richard Bennett [EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported
to the 19/12/2000 snapshot of DynAPI2)
visit the DynAPI homepage (and FAQ)
::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist
here:
http://www.mail-archive.com/index.php3?hunt=dynapi
----- Original Message -----
Sent: Wednesday, March 21, 2001 8:08
AM
Subject: [Dynapi-Help] Re: Eating
Events
I've located a method called 'setBubble'
as the parent of an object '_e'? setting it doesn't appear to help? Any
ideas?
----- Original Message -----
Sent: Tuesday, March 20, 2001 7:34
PM
Subject: Eating Events
I'm assuming this is a simple question
someone can take a second to answer? <grin> How can I 'eat an event'
like the "click" event and not have it bubble up? For instance, I have
a simple button that I have an enabled property exposed. If the user sets
this property, my button "greys out". I'd also like to prevent passing
on of click events to the underlaying layers. Regards,Steve
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
|