History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-7079
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P0 P0
Assignee: Unassigned
Reporter: André Bargull
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

SWF9: mouse-event bug2

Created: 27/Sep/08 05:38 AM   Updated: 13/Oct/08 03:20 PM
Component/s: Kernel - swf9
Affects Version/s: HoneyDew (4.2b2)
Fix Version/s: HoneyDew (4.2b2)

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 11,262
Fixed in branch: trunk
Runtime: SWF9
Fix in hand: False


 Description  « Hide
To reproduce:
- click on green area

Expected:
- debug-message 'onclick - child'

Actual:
- debug-message 'onclick - parent'


testcase:
---
<canvas debug="true">
    <view width="100%" clickable="false" height="80" bgcolor="#ffaaaa">
      <handler name="onclick">Debug.write('onclick - parent')</handler>
      <handler name="oninit" >this.setAttribute('clickable', true)</handler>
      <view width="100%" height="50" bgcolor="#aaffaa">
        <handler name="onclick">Debug.write('onclick - child')</handler>
      </view>
    </view>
</canvas>
---

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
André Bargull - 28/Sep/08 04:30 AM
------------------------------------------------------------------------
r11262 | bargull | 2008-09-28 13:29:13 +0200 (Sun, 28 Sep 2008) | 34 lines
Ge?\195?\164nderte Pfade:
   M /openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
   M /openlaszlo/trunk/examples/components/grid_example.lzx
   M /openlaszlo/trunk/lps/components/lz/gridtext.lzx

Change 20080927-bargull-SVC by bargull@dell--p4--2-53 on 2008-09-27 15:37:52
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix swf9 sprite clickability

New Features:

Bugs Fixed: LPP-7079, LPP-7058, LPP-6943

Technical Reviewer: hminsky
QA Reviewer: mamye
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
the clickbutton needs to be placed behind all child-sprites (LPP-7079),
so it's now placed at the 0th position.
grid_example.lzx:
- use short form for init-handler (not a required change)
- use strings when assigning values to workdef/homedef (avoids swf8 debug-info)
gridtext.lzx:
- change attribute type to "node" (not a required change)



Tests:
testcase at LPP-7079
grid example (LPP-7058, LPP-6943)


------------------------------------------------------------------------

Mamye Kratt - 13/Oct/08 03:20 PM
(4.2b2 branch build r11411)

Testcase runs correctly in swf8/9 and dhtml.