Edited text below:
Test script for events coming shortly.
-------------------
Issues regarding resource loading and views with animated
resources (sprites) and behavior in
DHTML and Flash (SWF7, SWF8).
Resource Loading:
There are several ways of resolving resource paths for multi-frame
resources. They correspond to the following path examples:
1. <view id="v1" resource="http://www.openlaszlo.org/images/
horses/horse-6-sm.jpg" />
2. <view id="v2" resource="http://www.openlaszlo.org/images/
horses/animations/horse-anm-3.swf"/>
3. <view id="v3" resource="http://www.openlaszlo.org/images/
animations/horse-anm-2s/"
4. <view id="v4" resource="http://www.openlaszlo.org/images/
animations/horse-anm-2s"
5. <view id="v5" resource="images/horse-3-sm.jpg"/>
6. <view id="v6" resource="images/animations/horse-anm-1L.swf"/>
7. <view id="v7" resource="images/animations/horse-anm-2s/"/>
8. <view id="v8" resource="images/animations/horse-anm-2s"/>
Background: In the case of URL's (1, 2, 3, and 4) the resources
are loaded
at runtime through HTTP. In the case of local file references
(5, 6,
7, 8) the resources are compiled as part of the LZX application.
1 and 5 work in DHTML and Flash as expected.
In general since SWF movie resources are not directly supported in
DHTML, we have a couple of alternatives for interpreting 6 in
DHTML. First the loader will look for png files in an immediate
subdirectory of the given directory: i.e. in the case of
"images/animations/horse-anm-1L.swf" it will look for
"images/animations/horse-anm-1L/horse-anm-1L*.png". Then, if no
png's
are found there, it would look in the autoPng directory
"images/animations/autoPng/horse-anm-1L*.png".
However, 2 will simply not work in DHTML at this point because we
don't have a way of doing a directory listing over HTTP,
although in
an upcoming release it will behave the same as 6.
3 and 4 will also not work in either DHTML or Flash at this
point, for
the same reason.
7 and 8, however, will work as expected in both DHTML and Flash.
Events:
The following events are intended to be defined for views in
both DHTML and SWF:
Events generated by Views with Animated Resources (sprites):
onframe, onimload, onlastframe, onplay, onstop,
onopacity, onaddsubresource, onerror, ontimeout
Mouse Events: onclick, ondblclick, ondrag, onmousedown,
onmousedragin, onmousedragout,
onmouseout, onmouseover, onmouseup, onmouseupoutside
For the moment, many of the Animation Events in DHTML are
untested.