[Laszlo-dev] stretches="both" disabled mouse events on view?
Frisco Del Rosario
frisco at laszlosystems.com
Fri Jul 6 09:48:13 PDT 2007
On Jul 6, 2007, at 8:35 AM, Henry Minsky 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.
Besides your point, Henry, but could you talk to this guy? He also
wants to set and change resources at runtime: http://
forum.openlaszlo.org//showthread.php?t=9738&goto=newpost
> 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?
I bet it's by design, and that the resource needs to be set as
clickregion. Then mouseover and mousedown work. For instance:
<view height="150" width="100" bgcolor="red" clickable="true"
resource="test_triangle.swf" stretches="both"
clickregion="test_triangle.swf" onmouseover="Debug.write('over')"
onmousedown="Debug.write('down')" onclick="Debug.write('click')"/>
--
assertEquals(Frisco Del Rosario, OpenLaszlo tester)
More information about the Laszlo-dev
mailing list