Author: hqm
Date: 2008-01-03 09:38:11 -0800 (Thu, 03 Jan 2008)
New Revision: 7716
Added:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzIdleKernel.as
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/Library.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/Library.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/Library.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzScript.lzs
Log:
checkpoint lznode stuff
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
2008-01-03 17:38:11 UTC (rev 7716)
@@ -3,7 +3,7 @@
/**
* Definition of the basic LFC Library
*
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @access private
@@ -20,9 +20,9 @@
#include "core/Library.lzs"
#include "events/Library.lzs"
- //#include "kernel/Library.lzs"
+#include "kernel/Library.lzs"
//#include "views/Library.lzs"
-#include "controllers/Library.lzs"
+ //#include "controllers/Library.lzs"
} else {
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-01-03
17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-01-03
17:38:11 UTC (rev 7716)
@@ -2,7 +2,7 @@
* LzNode.lzs
*
* *
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @topic LZX
@@ -501,7 +501,7 @@
* @type LzNode
* @keywords readonly
*/
-var immediateparent = null;
+var immediateparent:LzNode = null;
/** @access private */
var dependencies = null;
@@ -775,7 +775,7 @@
* @access private
* @devnote LzCanvas replaces this method, so must be kept in sync
*/
-function __LZcallInit ( ){
+ function __LZcallInit (an:* = null ){
if ( this.parent && this.parent.__LZpreventSubInit ){
this.parent.__LZpreventSubInit.push( this );
return;
@@ -1141,7 +1141,7 @@
/** @access private */
-var setters ={
+var setters:* ={
name : "setName" ,
id : "setID" ,
$events : "__LZsetEvents" ,
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
2008-01-03 17:38:11 UTC (rev 7716)
@@ -1,5 +1,5 @@
/*
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*/
@@ -34,3 +34,36 @@
public static function getPropertyValueFor(a:*, b:*):* { return null;}
}
+
+
+public class LzView extends LzNode {
+ public function LzView(...rest){
+ super(null, null, null, null);
+ }
+}
+
+public class LzCanvas extends LzView {
+ public function LzCanvas(...rest){
+ super(null, null, null, null);
+ }
+
+
+ public function initiatorAddNode ( e:* , n:* ){
+ }
+
+}
+
+
+var canvas:LzCanvas = null;
+
+function LzInstantiateView(e, tn:* = null)
+{
+ if ( tn == null) {
+ tn = 1;
+ }
+ canvas.initiatorAddNode( e , tn );
+}
+
+public class LzAnimator {
+ public function LzAnimator(...rest){}
+}
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/Library.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/Library.lzs
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/Library.lzs
2008-01-03 17:38:11 UTC (rev 7716)
@@ -1,14 +1,17 @@
/**
* Library.lzs
*
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @access private
*/
if ($swf9) {
- // #include "kernel/LzIdleKernelSWF9.as"
+ #include "kernel/swf9/Library.lzs"
+ // TODO [hqm 01 2008] Note: we should be able to merge
+ // the LzIdleKernel swf9 version with the default version
+
} else {
#include "kernel/LzIdleKernel.lzs"
#include "kernel/LzUtils.lzs"
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/Library.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/Library.lzs
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/Library.lzs
2008-01-03 17:38:11 UTC (rev 7716)
@@ -1,34 +1,13 @@
/**
* Library.js
*
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @topic Kernel
* @subtopic AS2
*/
-#include "kernel/swf9/LzRequires.lzs"
-#include "kernel/swf9/LzSprite.lzs"
-#include "kernel/swf9/LzTextSprite.lzs"
-#include "kernel/swf9/LzInputTextSprite.lzs"
-#include "kernel/swf9/LzMakeLoadSprite.lzs"
-#include "kernel/swf9/LzLoader.lzs"
-#include "kernel/swf9/LzMediaLoader.lzs"
-#include "kernel/swf9/LzLibraryLoader.lzs"
-#include "kernel/swf9/LzFontManager.lzs"
-#include "kernel/swf9/LzLoadQueue.lzs"
-#include "kernel/swf9/LzFunctions.lzs"
-#include "kernel/swf9/LzSoundMC.lzs"
-#include "kernel/swf9/LzLibrary.lzs"
-#include "kernel/swf9/LzXMLParser.lzs"
-#include "kernel/swf9/LzXMLTranslator.lzs"
-#include "kernel/swf9/LzHTTPLoader.lzs"
-#include "kernel/swf9/LzMouseKernel.lzs"
-#include "kernel/swf9/LzAudio.lzs"
-#include "kernel/swf9/LzScreenKernel.lzs"
-#include "kernel/swf9/LzKeyboardKernel.lzs"
-#include "kernel/swf9/LzContextMenu.lzs"
-
-//Use swf version until we decide what swf9 version looks like
-#include "kernel/swf/dojo/Library.lzs"
+#include "kernel/swf9/LzIdleKernel.as"
+#include "kernel/swf9/LzSprite.as"
+#include "kernel/swf9/LzTextSprite.as"
Added: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzIdleKernel.as
Property changes on:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzIdleKernel.as
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
2008-01-03 17:38:11 UTC (rev 7716)
@@ -1,7 +1,7 @@
/**
* LzSprite.as
*
- * @copyright Copyright 2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @topic Kernel
@@ -9,16 +9,18 @@
* @author Henry Minsky <[EMAIL PROTECTED]>
*/
+public class LzSprite extends Sprite {
-package {
+ #passthrough (toplevel:true) {
+
import flash.display.*;
import flash.events.*;
import mx.controls.Button;
import flash.net.URLRequest;
+}#
+#passthrough {
- public class LzSprite extends Sprite {
-
public var owner:* = null;
public var bgColor:* = null;
@@ -429,8 +431,8 @@
// NYI
return null;
}
+ }#
+ }
- }
-}
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
2008-01-03 17:38:11 UTC (rev 7716)
@@ -1,7 +1,8 @@
+
/**
* LzTextSprite.as
*
- * @copyright Copyright 2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @topic Kernel
@@ -10,282 +11,290 @@
*/
-package {
+
+
+
+public class LzTextSprite extends LzSprite {
+ #passthrough (toplevel:true) {
+
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.URLRequest;
+ }#
- public class LzTextSprite extends LzSprite {
- public var textfield:TextField = null;
- public static var PAD_TEXTWIDTH:int = 4;
+ #passthrough {
+ public var textfield:TextField = null;
- public var fontsize:String = "11";
- public var fontstyle:String = "plain";
- public var fontname:String = "Verdana";
+ public static var PAD_TEXTWIDTH:int = 4;
- public var colorstring:String = "#000000";
- public var text:String = "";
- public var resize:Boolean = false;
- public var multiline:Boolean = false;
- public var underline:Boolean = false;
- public var closeformat:String;
- public var format:String;
+ public var fontsize:String = "11";
+ public var fontstyle:String = "plain";
+ public var fontname:String = "Verdana";
- public var sizeToHeight:Boolean = false;
- public var password:Boolean = false;
- public var scrollheight:Number = 0;
+ public var colorstring:String = "#000000";
+ public var text:String = "";
- public function LzTextSprite (... initargs) {
- // owner:*, isroot:Boolean
- this.textfield = createTextField(0,0,100,20);
- }
+ public var resize:Boolean = false;
+ public var multiline:Boolean = false;
+ public var underline:Boolean = false;
+ public var closeformat:String;
+ public var format:String;
- private function createTextField(x:Number, y:Number, width:Number,
height:Number):TextField {
- var tfield:TextField = new TextField();
- tfield.x = x;
- tfield.y = y;
- tfield.width = width;
- tfield.height = height;
- tfield.border = false;
- tfield.cacheAsBitmap = true;
- addChild(tfield);
- return tfield;
- }
+ public var sizeToHeight:Boolean = false;
+ public var password:Boolean = false;
+ public var scrollheight:Number = 0;
- public function __initTextProperties (args:Object):void {
- this.password = args.password ? true : false;
- var textclip:TextField = this.textfield;
- textclip.displayAsPassword = this.password;
+ public function LzTextSprite (... initargs) {
+ // owner:*, isroot:Boolean
+ this.textfield = createTextField(0,0,100,20);
+ }
- textclip.selectable = args.selectable;
- textclip.autoSize = TextFieldAutoSize.NONE;
+ private function createTextField(x:Number, y:Number, width:Number,
height:Number):TextField {
+ var tfield:TextField = new TextField();
+ tfield.x = x;
+ tfield.y = y;
+ tfield.width = width;
+ tfield.height = height;
+ tfield.border = false;
+ tfield.cacheAsBitmap = true;
+ addChild(tfield);
+ return tfield;
+ }
- this.setMultiline( args.multiline );
+ public function __initTextProperties (args:Object):void {
+ this.password = args.password ? true : false;
+ var textclip:TextField = this.textfield;
+ textclip.displayAsPassword = this.password;
- //inherited attributes, documented in view
- this.fontname = args.font;
- this.fontsize = args.fontsize;
- this.fontstyle = args.fontstyle;
- this.__setFormat();
+ textclip.selectable = args.selectable;
+ textclip.autoSize = TextFieldAutoSize.NONE;
- textclip.htmlText = this.format + this.text + this.closeformat;
- textclip.background = false;
+ this.setMultiline( args.multiline );
- // To compute our width:
- // + if text is multiline:
- // if no width is supplied, use parent width
- // + if text is single line:
- // if no width was supplied and there's no constraint, measure
the text width:
- // if empty text content was supplied, use DEFAULT_WIDTH
+ //inherited attributes, documented in view
+ this.fontname = args.font;
+ this.fontsize = args.fontsize;
+ this.fontstyle = args.fontstyle;
+ this.__setFormat();
+ textclip.htmlText = this.format + this.text + this.closeformat;
+ textclip.background = false;
- //(args.width == null && typeof(args.$refs.width) != "function")
+ // To compute our width:
+ // + if text is multiline:
+ // if no width is supplied, use parent width
+ // + if text is single line:
+ // if no width was supplied and there's no constraint, measure
the text width:
+ // if empty text content was supplied, use DEFAULT_WIDTH
- // To compute our height:
- // + If height is supplied, use it.
- // + if no height supplied:
- // if single line, use font line height
- // else get height from flash textobject.textHeight
- //
- if (args.height == null && (args.$ref == null ||
typeof(args.$refs.height) != "function")) {
- this.sizeToHeight = true;
- // set autoSize to get text measured
- textclip.autoSize = TextFieldAutoSize.LEFT;
- textclip.htmlText = this.format + "__ypgSAMPLE__" +
this.closeformat;
+ //(args.width == null && typeof(args.$refs.width) != "function")
- this.height = textclip.height;
- textclip.htmlText = this.format + this.text + this.closeformat;
- if (!this.multiline) {
- // But turn off autosizing for single line text, now that
- // we got a correct line height from flash.
- textclip.autoSize = TextFieldAutoSize.NONE;
- }
- } else {
- textclip.height = args.height;
- //this.setHeight(args.height);
- }
- // Default the scrollheight to the visible height.
- this.scrollheight = this.height;
- }
+ // To compute our height:
+ // + If height is supplied, use it.
+ // + if no height supplied:
+ // if single line, use font line height
+ // else get height from flash textobject.textHeight
+ //
+ if (args.height == null && (args.$ref == null ||
typeof(args.$refs.height) != "function")) {
+ this.sizeToHeight = true;
+ // set autoSize to get text measured
+ textclip.autoSize = TextFieldAutoSize.LEFT;
+ textclip.htmlText = this.format + "__ypgSAMPLE__" +
this.closeformat;
- public function setBorder ( onroff:Boolean):void {
- this.textfield.border = (onroff == true);
- }
+ this.height = textclip.height;
- public function setEmbedFonts ( onroff:Boolean ):void {
- this.textfield.embedFonts = (onroff == true);
- }
+ textclip.htmlText = this.format + this.text + this.closeformat;
+ if (!this.multiline) {
+ // But turn off autosizing for single line text, now that
+ // we got a correct line height from flash.
+ textclip.autoSize = TextFieldAutoSize.NONE;
+ }
+ } else {
+ textclip.height = args.height;
+ //this.setHeight(args.height);
+ }
+ // Default the scrollheight to the visible height.
+ this.scrollheight = this.height;
+ }
- /*
- * setFontSize( Number:size )
- o Sets the size of the font in pixels
- */
- public function setFontSize ( fsize:String ):void {
- this.fontsize = fsize;
- this.__setFormat();
- // force recompute of height if needed
- this.setText( this.text );
- }
+ public function setBorder ( onroff:Boolean):void {
+ this.textfield.border = (onroff == true);
+ }
+ public function setEmbedFonts ( onroff:Boolean ):void {
+ this.textfield.embedFonts = (onroff == true);
+ }
- public function setFontStyle ( fstyle:String ):void {
- this.fontstyle = fstyle;
- this.__setFormat();
- // force recompute of height if needed
- this.setText( this.text );
- }
+ /*
+ * setFontSize( Number:size )
+ o Sets the size of the font in pixels
+ */
+ public function setFontSize ( fsize:String ):void {
+ this.fontsize = fsize;
+ this.__setFormat();
+ // force recompute of height if needed
+ this.setText( this.text );
+ }
- /* setFontName( String:name )
- o Sets the name of the font
- o Can be a comma-separated list of font names
- */
- public function setFontName ( fname:String ):void{
- this.fontname = fname;
- this.__setFormat();
- // force recompute of height if needed
- this.setText( this.text );
- }
- //public setFontInfo (fontname:String, fontstyle:String, fontsize:String)
- /**
- * Sets the color of all the text in the field to the given hex color.
- * @param Number c: The color for the text -- from 0x0 (black) to
0xFFFFFF (white)
- */
- public override function setColor ( col:* ):void {
- this.colorstring = "#" + col.toString( 16 );
- this.__setFormat();
- this.setText( this.text );
- }
+ public function setFontStyle ( fstyle:String ):void {
+ this.fontstyle = fstyle;
+ this.__setFormat();
+ // force recompute of height if needed
+ this.setText( this.text );
+ }
+ /* setFontName( String:name )
+ o Sets the name of the font
+ o Can be a comma-separated list of font names
+ */
+ public function setFontName ( fname:String ):void{
+ this.fontname = fname;
+ this.__setFormat();
+ // force recompute of height if needed
+ this.setText( this.text );
+ }
+ //public setFontInfo (fontname:String, fontstyle:String,
fontsize:String)
+ /**
+ * Sets the color of all the text in the field to the given hex color.
+ * @param Number c: The color for the text -- from 0x0 (black) to
0xFFFFFF (white)
+ */
+ public override function setColor ( col:* ):void {
+ this.colorstring = "#" + col.toString( 16 );
+ this.__setFormat();
+ this.setText( this.text );
+ }
- /** setText( String:text )
- o Sets the contents to the specified text
- o Uses the widthchange callback method if multiline is false and
text is not resizable
- o Uses the heightchange callback method if multiline is true
- */
- /**
- * setText sets the text of the field to display
- * @param String t: the string to which to set the text
- */
- public function setText ( t:String ):void {
- if (typeof(t) == 'undefined' || t == 'null') {
- t = "";
- } else if (typeof(t) != "string") {
- t = t.toString();
- }
+ /** setText( String:text )
+ o Sets the contents to the specified text
+ o Uses the widthchange callback method if multiline is false and
text is not resizable
+ o Uses the heightchange callback method if multiline is true
+ */
- // If accessibility is enabled, hunt for <img alt="...."> tags and
assign and
- // put the alt tag somewhere a screen reader can find it.
- /*
- if (canvas.accessible) {
- t = this.annotateAAimg(t);
+
+ /**
+ * setText sets the text of the field to display
+ * @param String t: the string to which to set the text
+ */
+ public function setText ( t:String ):void {
+ if (typeof(t) == 'undefined' || t == 'null') {
+ t = "";
+ } else if (typeof(t) != "string") {
+ t = t.toString();
}
- */
- this.text = t;// this.format + t + this.closeformat if proper
measurement were working
- this.textfield.htmlText = this.format + t + this.closeformat;
+ // If accessibility is enabled, hunt for <img alt="...."> tags and
assign and
+ // put the alt tag somewhere a screen reader can find it.
+ /*
+ if (canvas.accessible) {
+ t = this.annotateAAimg(t);
+ }
+ */
+
+ this.text = t;// this.format + t + this.closeformat if proper
measurement were working
+ this.textfield.htmlText = this.format + t + this.closeformat;
- if (this.resize && (this.multiline == false)) {
- // single line resizable fields adjust their width to match the
text
- var w:Number = this.getTextWidth();
- // only set width if it changed
- if (w != this.width) this.setWidth(w);
- }
+ if (this.resize && (this.multiline == false)) {
+ // single line resizable fields adjust their width to match
the text
+ var w:Number = this.getTextWidth();
+ // only set width if it changed
+ if (w != this.width) this.setWidth(w);
+ }
- //multiline resizable fields adjust their height
- if (this.sizeToHeight) {
- this.setHeight(this.textfield.height);
- }
+ //multiline resizable fields adjust their height
+ if (this.sizeToHeight) {
+ this.setHeight(this.textfield.height);
+ }
- /*
- if (this.multiline && this.scroll == 0 ) {
+ /*
+ if (this.multiline && this.scroll == 0 ) {
var scrolldel = new LzDelegate(this, "__LZforceScrollAttrs");
LzIdle.callOnIdle(scrolldel);
- }
- */
+ }
+ */
- }
+ }
- /**
- * Sets the format string for the text field.
- * @access private
- */
- public function __setFormat ():void {
+ /**
+ * Sets the format string for the text field.
+ * @access private
+ */
+ public function __setFormat ():void {
- // TODO [make this work when font manager is implemented]
- this.format ="<FONT FACE=\"" + (this.fontname) +
- "\" SIZE=\"" + this.fontsize + "\" " +
- "COLOR=\"" + this.colorstring + "\" >";
- this.closeformat = "</FONT>";
+ // TODO [make this work when font manager is implemented]
+ this.format ="<FONT FACE=\"" + (this.fontname) +
+ "\" SIZE=\"" + this.fontsize + "\" " +
+ "COLOR=\"" + this.colorstring + "\" >";
+ this.closeformat = "</FONT>";
- this.textfield.embedFonts = false;
+ this.textfield.embedFonts = false;
- if (this.fontstyle == "bold" || this.fontstyle =="bolditalic"){
- this.format += "<B>";
- this.closeformat = "</B>" + this.closeformat;
- }
+ if (this.fontstyle == "bold" || this.fontstyle =="bolditalic"){
+ this.format += "<B>";
+ this.closeformat = "</B>" + this.closeformat;
+ }
- if (this.fontstyle == "italic" || this.fontstyle =="bolditalic"){
- this.format += "<I>";
- this.closeformat = "</I>" + this.closeformat;
- }
- if (this.underline){
- this.format += "<U>";
- this.closeformat = "</U>" + this.closeformat;
- }
- }
+ if (this.fontstyle == "italic" || this.fontstyle =="bolditalic"){
+ this.format += "<I>";
+ this.closeformat = "</I>" + this.closeformat;
+ }
+ if (this.underline){
+ this.format += "<U>";
+ this.closeformat = "</U>" + this.closeformat;
+ }
+ }
- public function setMultiline ( ml:Boolean ):void {
- this.multiline = (ml == true);
- if (this.multiline) {
- this.textfield.multiline = true;
- this.textfield.wordWrap = true;
+ public function setMultiline ( ml:Boolean ):void {
+ this.multiline = (ml == true);
+ if (this.multiline) {
+ this.textfield.multiline = true;
+ this.textfield.wordWrap = true;
- } else {
- this.textfield.multiline = false;
- this.textfield.wordWrap = false;
+ } else {
+ this.textfield.multiline = false;
+ this.textfield.wordWrap = false;
- }
- }
+ }
+ }
- /**
- * Sets the selectability (with Ibeam cursor) of the text field
- * @param Boolean isSel: true if the text may be selected by the user
- */
- public function setSelectable ( isSel:Boolean ):void {
- this.textfield.selectable = isSel;
- }
+ /**
+ * Sets the selectability (with Ibeam cursor) of the text field
+ * @param Boolean isSel: true if the text may be selected by the user
+ */
+ public function setSelectable ( isSel:Boolean ):void {
+ this.textfield.selectable = isSel;
+ }
- public function getTextWidth ( ):Number {
- var tf:TextField = this.textfield;
- var ml:Boolean = tf.multiline;
- var mw:Boolean = tf.wordWrap;
- tf.multiline = false;
- tf.wordWrap = false;
- var twidth:Number = (tf.textWidth == 0) ? 0 : tf.textWidth +
LzTextSprite.PAD_TEXTWIDTH;
- tf.multiline = ml;
- tf.wordWrap = mw;
- return twidth;
- }
+ public function getTextWidth ( ):Number {
+ var tf:TextField = this.textfield;
+ var ml:Boolean = tf.multiline;
+ var mw:Boolean = tf.wordWrap;
+ tf.multiline = false;
+ tf.wordWrap = false;
+ var twidth:Number = (tf.textWidth == 0) ? 0 : tf.textWidth +
LzTextSprite.PAD_TEXTWIDTH;
+ tf.multiline = ml;
+ tf.wordWrap = mw;
+ return twidth;
+ }
- public function getTextHeight ( ):Number {
- return this.textfield.textHeight;
- }
-
- }
+ public function getTextHeight ( ):Number {
+ return this.textfield.textHeight;
+ }
+ }#
}
+
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/Library.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/Library.lzs
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/Library.lzs
2008-01-03 17:38:11 UTC (rev 7716)
@@ -1,19 +1,33 @@
/**
* Library.lzs
*
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @access private
*/
-#include "views/LaszloView.lzs"
+if($swf9) {
+
+ #include "views/LaszloView.js"
+ #include "views/LzViewLinkage.js"
+
+ //#include "views/LzText.js"
+ //#include "views/LzInputText.js"
+
+
+ #include "views/LaszloCanvas.js"
+
+} else {
+
+ #include "views/LaszloView.lzs"
#include "views/LzViewLinkage.lzs"
#include "views/LzText.lzs"
#include "views/LzInputText.lzs"
#include "views/LaszloCanvas.lzs"
+}
if ($as2) {
#include "views/platform/LzPlatform.lzs"
} else if ($dhtml) {
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzScript.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzScript.lzs
2008-01-03 17:10:07 UTC (rev 7715)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzScript.lzs
2008-01-03 17:38:11 UTC (rev 7716)
@@ -1,6 +1,6 @@
/**
*
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @access public
@@ -68,8 +68,8 @@
*/
static var tagname = 'script';
-function initialize ( parent, args ) {
- super.initialize.apply(this, arguments);
+function LzScript ( parent, args ) {
+ super(parent,null);
args.script();
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins