Change 20100409-maxcarlson-K by maxcarl...@bank on 2010-04-09 15:48:08 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: UPDATED Fix context menus when using compiled resources
Bugs Fixed: LPP-8815 - BJY-57383-548: context menu not shown when compiling to
swf9
Technical Reviewer: [email protected]
QA Reviewer: ptw
Details: Updated to address Andre's comments. When a sprite is using a
compiled resource, isn't clickable and has a context menu, create a new,
separate sprite to ensure any bitmap resources (which eat clicks) are covered
instead of using the LzSprite's graphics context to draw a hidden background.
This makes the context menu work as it should with compile resources, but
doesn't interfere with clickable sprites. I noticed that stretched compiled
bitmap resources weren't smoothed in passing, so turned that on also.
Tests: See LPP-8815, Andre's test runs as before:
<canvas>
<view width="100" height="100" bgcolor="red">
<attribute name="over" value="0" type="number"/>
<attribute name="out" value="0" type="number"/>
<handler name="onmouseover">
Debug.write("onmouseover:" + this.over++);
v.setAttribute("visible", true);
</handler>
<handler name="onmouseout">
Debug.write("onmouseout:" + this.out++);
v.setAttribute("visible", false);
</handler>
<view name="v" width="100" height="100" visible="false">
<contextmenu/>
</view>
</view>
</canvas>
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100409-maxcarlson-K.tar