I don't have the time at the moment to go through the code personally, but if someone is willing to make the changes, I'd be more than willing to help them out.
note 1: the file events.js can be placed in either the events or the api directory, I personally prefer the api directory as I actually have simple event support by default in the layer.js file. it is all up to you guys.
note 2: it uses the "old" method of bublling and browser event handling. I saw this as making it easier to control the events. it shouldn't be too hard for someone to place the new code in there.
Jordi - IlMaestro - Ministral wrote:
Simple events and listeners are not compatible, They both define the
invokeEvent method. Using simple, a call to invokeevent("create") willl
call objecte.oncreate(). Simple events won't work with mouse events
because mouse.js uses the event objecte which is defined in
listeners.js. Now is that a design mistake ? Sure it is. If we moved the
DynEvent into another file it could be included without listeners and
then mouse events would work with simple events, no listeners needed.Richard Bennett wrote:
> I asked this question last week, someone must know. Can anyone explain
> how simple events should work? I
> have: DynAPI.include('dynapi.api.*');DynAPI.include('dynapi.event.simple');
>
> DynAPI.include('dynapi..event.listeners'); DynAPI.
> { button1 = new DynLayer(null,100,100,100,40)
> button1.setHTML('Click Me')
> DynAPI.document.addChild(button1); button1.
> {alert()}} This doesn't work. Cheers,
> Richard Bennett [EMAIL PROTECTED]
> www.richardinfo.com
> (Everything running on, and ported to DynAPI2.51)
> 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_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
events.zip