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.onLoad=function()
> { button1 = new DynLayer(null,100,100,100,40)
> button1.setHTML('Click Me')
> DynAPI.document.addChild(button1); button1.onmouseup=function()
> {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
Re: [Dynapi-Help] how to use simple events. repeat
Jordi - IlMaestro - Ministral Tue, 08 May 2001 08:07:12 -0700
- [Dynapi-Help] how to use simple events. repe... Richard Bennett
- Re: [Dynapi-Help] how to use simple eve... Michael Pemberton
- Re: [Dynapi-Help] how to use simple eve... Michael Pemberton
- Re: [Dynapi-Help] how to use simple eve... Jordi - IlMaestro - Ministral
- Re: [Dynapi-Help] how to use simple... Michael Pemberton
