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

Key: LPP-3726
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P0 P0
Assignee: Unassigned
Reporter: Max Carlson
Votes: 1
Watchers: 1
Operations

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

stretches breaks clickable in swf7/8

Created: 16/Mar/07 12:24 PM   Updated: 20/Aug/07 01:04 PM
Component/s: Kernel - swf6-8
Affects Version/s: 4.0.0
Fix Version/s: 4.0.5WaffleCone

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 6,131
Runtime: N/A
Fix in hand: False


 Description  « Hide
Reported in the forums:
<canvas>
<class name="testclass" extends="image" width="75" height="75"
clickable="true" focusable="true" opacity="1" stretches="both">
<attribute name="image_id" type="string" value=""/>
<attribute name="image_name" type="string" value=""/>
<attribute name="image_mimetype" type="string" value=""/>
<attribute name="enabled" value="false" type="boolean" />

<handler name="oninit">
Debug.write("test oninit");
</handler>

<handler name="onmouseover">
Debug.write("onmouseover class");
</handler>

<handler name="onmousedown">
Debug.write("onmousedown class");
</handler>

<method name="setEnable" args="flag">
Debug.write("setEneable");
</method>
</class>

    <testclass src="resources/earth.png"/>

</canvas>
Works in DHTML, but not swf7/8.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Max Carlson - 16/Mar/07 12:27 PM
Here's a workaround:
<class name="testclass" width="75" height="75"
clickable="true" focusable="true" opacity="1">
<attribute name="image_id" type="string" value=""/>
<attribute name="image_name" type="string" value=""/>
<attribute name="image_mimetype" type="string" value=""/>
<attribute name="enabled" value="false" type="boolean" />
<attribute name="src" value="" type="text" />

        <image src="${parent.src}" width="100%" height="100%" stretches="both"/>

<handler name="oninit">
Debug.write("test oninit");
</handler>

<handler name="onmouseover">
Debug.write("onmouseover class");
</handler>

<handler name="onmousedown">
Debug.write("onmousedown class");
</handler>

<method name="setEnable" args="flag">
Debug.write("setEneable");
</method>
</class>

    <testclass src="resources/earth.png"/>

Zvi Schreiber - 21/Mar/07 11:31 PM
I vote for increasing the severity of this one - we use stretches a lot in our OL3 application and everything goes crazy when we try to port to OL4 Flash - this is holding up our migration - many thanks.

Max Carlson - 17/Aug/07 03:31 PM
Author: max
Date: 2007-08-17 15:22:51 -0700 (Fri, 17 Aug 2007)
New Revision: 6131

Modified:
   openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as
Log:
Change 20070817-maxcarlson-e by maxcarlson@plastik on 2007-08-17 11:54:00 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Fix stretches with clickable in swf

New Features:

Bugs Fixed: LPP-3726 - stretches breaks clickable in swf7/8

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

Documentation:

Release Notes:

Details: Update resource and button size after media is loaded.
    

Tests: See LPP-3726.



Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as
===================================================================
--- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as 2007-08-17 21:27:34 UTC (rev 6130)
+++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as 2007-08-17 22:22:51 UTC (rev 6131)
@@ -174,6 +174,7 @@
     if ( this.totalframes > 1 ){
         this.checkPlayStatus();
     }
+ this.updateResourceSize();
     if ( this._setrescheight ){
         var yscale = this.height/this.resourceheight;
         this.__LZmovieClipRef._yscale = yscale * 100;
@@ -182,6 +183,10 @@
         var xscale =this.width/this.resourcewidth;
         this.__LZmovieClipRef._xscale = xscale * 100;
     }
+ if (this.setButtonSize)
+ this.setButtonSize( "height" , this.height );
+ if (this.setButtonSize)
+ this.setButtonSize( "width" , this.width );
 
     //Debug.write(xscale, yscale, this);
 


_______________________________________________
Laszlo-checkins mailing list
Laszlo-checkins@openlaszlo.org
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Mamye Kratt - 20/Aug/07 01:04 PM
(wafflecone branch local build r6155)

Need to put a .png file in my-apps along with the test in the bug. Also, need to change the path and filename in test case. See test/resources for a .png file.