Bubbling..
 
Think of a glass of ginger ail..
the bubbles start anywhere in the glass, but do bubble up to the top of the glass..
 
This is the case with Events.. an event, once created, can bubble upwards to the parent of the objec that fired the event, and then bubbles up the the parent of THAT object,..
 
this can cause all sorts of problems..
Eg: you have a layer, this layer is listening for an event, inside that layer, you have another layer, also listening to that event, if the innerlayer recieves this event, and does not stop it from bubbling upward
(evnt.setBubble(false)) then the outter layer will also recieve the evnt, which can cause problems depening on what you, the programmer, expect the inner and outer layers to do when they recieve this event..
----- Original Message -----
Sent: Thursday, March 22, 2001 12:41 AM
Subject: Re: [Dynapi-Help] Re: Eating Events

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

Reply via email to