[Laszlo-dev] stretches="both" disabled mouse events on view?
Henry Minsky
henry.minsky at gmail.com
Fri Jul 6 08:56:29 PDT 2007
I filed a test case with a bug for this
http://jira.openlaszlo.org/jira/browse/LPP-4249
I'm wondering if there's a better way to do what I'm trying to do.
I have a bunch of separate image files (happen to be swfs), and I want to
load them at runtime
into a view, displaying different ones when the mouse is over,down,up, etc
on the view. I've seen this
done with multiframe resources, like this in button.lzx
<resource name="lzbutton_face_rsc">
<frame src="resources/button/simpleface_up.swf" />
<frame src="resources/button/simpleface_mo.swf" />
<frame src="resources/button/simpleface_dn.swf" />
<frame src="resources/button/simpleface_dsbl.swf" />
</resource>
But I want to load these on demand at runtime, not compile time. I like the
idea of combining a bunch of
images to make a multiframe resource, but it seems like we don't have a
convenient
API to build these "multiframe" resources from images loaded at runtime,
even though that is what the compiler will effectively do
for the DHTML runtime when it sees the LZX code above.
On 7/6/07, Henry Minsky <henry.minsky at gmail.com> wrote:
>
>
> In the SWF runtime, I have a view on which I'm trying to set the
> resource at runtime to an HTTP loaded image.
>
> I just noticed that mouse events (onmouseover, onmousedown) are not being
> generated when I have
> stretches="both" set on the view. Is this by design for some reason, or a
> bug?
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070706/5461f6ac/attachment.html
More information about the Laszlo-dev
mailing list