Author: hqm
Date: 2008-03-24 21:46:03 -0700 (Mon, 24 Mar 2008)
New Revision: 8383
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
Log:
Change 20080325-hqm-Z by [EMAIL PROTECTED] on 2008-03-25 00:44:09 EDT
in /Users/hqm/openlaszlo/devildog2/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/branches/devildog/WEB-INF/lps/lfc
Summary: more changes to get swf9 code running
New Features:
Bugs Fixed:
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Needed to declare some of the LFC classes dynamic, or else you cannot
add properties to them at runtime.
Tests:
swf9 apps now launch without any runtime error, but produce blank canvas
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs
2008-03-25 02:01:17 UTC (rev 8382)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs
2008-03-25 04:46:03 UTC (rev 8383)
@@ -72,7 +72,7 @@
* @shortdesc A description of an instance hierarchy that can be applied and
removed at runtime.
* @lzxname state
*/
-class LzState extends LzNode {
+dynamic class LzState extends LzNode {
public function LzState ( parent:* , attrs:* , children:* = null,
instcall:* = null) {
super(parent,attrs,children,instcall);
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
2008-03-25 02:01:17 UTC (rev 8382)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
2008-03-25 04:46:03 UTC (rev 8383)
@@ -87,7 +87,7 @@
-function LzCanvas ( parent, args ) {
+function LzCanvas ( args ) {
super(null, args);
// TODO: [2006-05-19 ptw] The original did not do this, should we?
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
2008-03-25 02:01:17 UTC (rev 8382)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
2008-03-25 04:46:03 UTC (rev 8383)
@@ -54,7 +54,7 @@
*
*/
-class LzView extends LzNode {
+dynamic class LzView extends LzNode {
function LzView ( parent:* , attrs:* , children:* = null, instcall:* =
null) {
super(parent,attrs,children,instcall);
@@ -354,7 +354,11 @@
/** @access private */
// TODO [hqm 2008-03] Will asking for LzSprite.prototype.xxx work in SWF9?
-var capabilities = LzSprite.prototype.capabilities;
+if ($swf9) {
+ var capabilities = LzSprite.capabilities;
+} else
+ var capabilities = LzSprite.prototype.capabilities;
+}
/**
* Base level constructor for views. See <method
@@ -389,8 +393,11 @@
}
-
- this.mask = ip.mask;
+ // TODO [hqm 2008-03] this was not needed in dhtml/swf8, in what
+ // case is immediateparent coming up null in swf9?
+ if (ip) {
+ this.mask = ip.mask;
+ }
if ($swf9) {
// can we make swf9 support __makeSprite call here?
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
2008-03-25 02:01:17 UTC (rev 8382)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
2008-03-25 04:46:03 UTC (rev 8383)
@@ -77,9 +77,6 @@
}
-
-
-
/** @access private
* @modifiers override
*/
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
2008-03-25 02:01:17 UTC (rev 8382)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
2008-03-25 04:46:03 UTC (rev 8383)
@@ -71,7 +71,7 @@
* supplied, the text field will by default be sized to fit the width of
* the initial text value.
*/
-class LzText extends LzView with LzFormatter {
+dynamic class LzText extends LzView with LzFormatter {
var maxlines = 1;
var selectable = false;
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins