|
|
|
[
Permlink
| « Hide
]
Philip Romanik - 11/Jun/07 10:35 AM
This is a regression from 3.4.
This is a better example and it turns out to be a swf-only bug. The problem is inside LzSprite.as but I don't know what it is.
<canvas debug="true" > <simplelayout axis="x" spacing="20" /> <view name="foo" > <view width="100" height="100"> <method event="oninit"> this.setAttribute( "bgcolor", 0xaaaaaa ); </method> </view> </view> <view width="100" height="100" bgcolor="red" /> </canvas> To make this demo work, you must set the background color in the view (the only difference in this example is the bgcolor="blue" in the view tag) <canvas debug="true" > <simplelayout axis="x" spacing="20" /> <view name="foo" > <view width="100" height="100" bgcolor="blue"> <method event="oninit"> this.setAttribute( "bgcolor", 0xaaaaaa ); </method> </view> </view> <view width="100" height="100" bgcolor="red" /> </canvas> Author: max
Date: 2007-06-11 20:07:37 -0700 (Mon, 11 Jun 2007) New Revision: 5388 Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/LzSprite.as Log: Change 20070611-maxcarlson-2 by maxcarlson@plastik on 2007-06-11 18:44:19 PDT in /Users/maxcarlson/openlaszlo/legals-clean for http://svn.openlaszlo.org/openlaszlo/branches/legals Summary: Fix late bgcolor setting in swf New Features: Bugs Fixed: Technical Reviewer: promanik QA Reviewer: jcrowley Doc Reviewer: (pending) Documentation: Release Notes: Details: LzSprite.as - Ensure container resource is created when addChildSprite() is called. Tests: Testcase from Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/LzSprite.as =================================================================== --- openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-06-12 02:13:16 UTC (rev 5387) +++ openlaszlo/branches/legals/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-06-12 03:07:37 UTC (rev 5388) @@ -849,6 +849,7 @@ */ LzSprite.prototype.addChildSprite = function ( s ){ if ( s.addedToParent ) return; + if ( ! this.__LZmovieClipRef ) { this.makeContainerResource() }; s.addedToParent = true; } _______________________________________________ Laszlo-checkins mailing list Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins (4.0 branch (4.0.3) local build r5544)
Testfiles run, same results in swf and dhtml. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||