Author: hqm
Date: 2008-03-25 13:14:07 -0700 (Tue, 25 Mar 2008)
New Revision: 8402
Modified:
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-0 by [EMAIL PROTECTED] on 2008-03-25 15:58:25 EDT
in /Users/hqm/openlaszlo/devildog3/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/branches/devildog/WEB-INF/lps/lfc
Summary: use new type cast idiom for view references to their sprites
New Features:
Bugs Fixed:
Technical Reviewer: dda (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Tests:
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
2008-03-25 19:44:06 UTC (rev 8401)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
2008-03-25 20:14:07 UTC (rev 8402)
@@ -77,8 +77,6 @@
/** @access private
* Just used to effect a type cast of immediateparent to LzView
*/
- var vip:LzView = null;
-
/** @access private */
var _height:Number;
/** @access private */
@@ -383,15 +381,7 @@
var ip = this.immediateparent;
- // TODO [hqm 2008-03] this is a hack to cast to type LzView for
- // the SWF9 compiler, until the compiler is taught to understand
- // type casting DHTML/SWF8
- if ($swf9) {
- this.vip = LzView(this.immediateparent);
- } else {
- this.vip = this.immediateparent;
- }
-
+ var vip:LzView = (this.immediateparent cast LzView);
// TODO [hqm 2008-03] this was not needed in dhtml/swf8, in what
// case is immediateparent coming up null in swf9?
@@ -511,8 +501,9 @@
* @access private
*/
override function __LZinstantiationDone (){
- if (this.vip) {
- (this.vip).addSubview( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip) {
+ (vip).addSubview( this );
} else {
// TODO [hqm 2008-03] This is to trace a bug of null immediateparent
seen in swf9 initialize
Debug.warn("LaszloView.__LZinstantiationDone immediateparent = null",
this);
@@ -1276,8 +1267,9 @@
if (this.sprite) this.sprite.predestroy();
+ var vip:LzView = (this.immediateparent cast LzView);
if ( this.addedToParent ){
- var svs = this.vip.subviews;
+ var svs = vip.subviews;
if (svs != null) {
for( var i = svs.length - 1; i >= 0; i-- ){
if ( svs[ i ] == this ){
@@ -1298,18 +1290,19 @@
this.$lzc$set_visible ( false );
+ var vip:LzView = (this.immediateparent cast LzView);
if ( this.addedToParent ) {
- if ( this.vip['__LZoutliewidth'] == this) {
- this.vip.__LZoutliewidth = null;
+ if ( vip['__LZoutliewidth'] == this) {
+ vip.__LZoutliewidth = null;
}
- if ( this.vip['__LZoutlieheight'] == this) {
- this.vip.__LZoutlieheight=null;
+ if ( vip['__LZoutlieheight'] == this) {
+ vip.__LZoutlieheight=null;
}
- if ('onremovesubview' in this.vip) {
- if (this.vip.onremovesubview.ready) {
- this.vip.onremovesubview.sendEvent( this );
+ if ('onremovesubview' in vip) {
+ if (vip.onremovesubview.ready) {
+ vip.onremovesubview.sendEvent( this );
}
}
}
@@ -1421,11 +1414,11 @@
this.sprite.setVisible(shown);
}
- var ip:LzView = this.vip;
- if (ip && ip.__LZcheckwidth)
- ip.__LZcheckwidthFunction( this );
- if (ip && ip.__LZcheckheight)
- ip.__LZcheckheightFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip && vip.__LZcheckwidth)
+ vip.__LZcheckwidthFunction( this );
+ if (vip && vip.__LZcheckheight)
+ vip.__LZcheckheightFunction( this );
if (this.onvisible.ready) this.onvisible.sendEvent( shown );
}
@@ -1472,8 +1465,9 @@
//this.__LZbgRef._xscale = v;
- if (this.vip && this.vip.__LZcheckwidth)
- this.vip.__LZcheckwidthFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip && vip.__LZcheckwidth)
+ vip.__LZcheckwidthFunction( this );
if (this.onwidth.ready) this.onwidth.sendEvent( v );
@@ -1518,8 +1512,9 @@
}
this.hassetheight = true;
- if (this.vip && this.vip.__LZcheckheight)
- this.vip.__LZcheckheightFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip && vip.__LZcheckheight)
+ vip.__LZcheckheightFunction( this );
if (this.onheight.ready) this.onheight.sendEvent( v );
@@ -1570,8 +1565,9 @@
if ( this.pixellock ) v = Math.floor( v );
this.sprite.setX(v)
- if (this.vip.__LZcheckwidth)
- this.vip.__LZcheckwidthFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip.__LZcheckwidth)
+ vip.__LZcheckwidthFunction( this );
if (this.onx.ready) this.onx.sendEvent( this.x );
}
}
@@ -1596,8 +1592,9 @@
if ( this.pixellock ) v = Math.floor( v );
this.sprite.setY(v)
- if (this.vip.__LZcheckheight)
- this.vip.__LZcheckheightFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip.__LZcheckheight)
+ vip.__LZcheckheightFunction( this );
if (this.ony.ready) this.ony.sendEvent( this.y );
}
}
@@ -1624,10 +1621,11 @@
this.setY( this.y, true );
}
- if (this.vip.__LZcheckwidth)
- this.vip.__LZcheckwidthFunction( this );
- if (this.vip.__LZcheckheight)
- this.vip.__LZcheckheightFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip.__LZcheckwidth)
+ vip.__LZcheckwidthFunction( this );
+ if (vip.__LZcheckheight)
+ vip.__LZcheckheightFunction( this );
}
/**
@@ -1670,13 +1668,15 @@
/** @access private */
function __LZalignCenter () {
- this.setAttribute( "x" , this.vip.width /2
+ var vip:LzView = (this.immediateparent cast LzView);
+ this.setAttribute( "x" , vip.width /2
- this.width /2);
}
/** @access private */
function __LZalignRight () {
- this.setAttribute( "x" , this.vip.width
+ var vip:LzView = (this.immediateparent cast LzView);
+ this.setAttribute( "x" , vip.width
- this.width);
}
@@ -1824,13 +1824,15 @@
/** @access private */
function __LZvalignMiddle () {
- this.setAttribute( "y" , this.vip.height /2
+ var vip:LzView = (this.immediateparent cast LzView);
+ this.setAttribute( "y" , vip.height /2
- this.height /2);
}
/** @access private */
function __LZvalignBottom () {
- this.setAttribute( "y" , this.vip.height
+ var vip:LzView = (this.immediateparent cast LzView);
+ this.setAttribute( "y" , vip.height
- this.height);
}
@@ -2048,8 +2050,9 @@
this.sprite.setWidth(newsize);
if (this.onwidth.ready) this.onwidth.sendEvent( newsize );
- if (this.vip.__LZcheckwidth)
- this.vip.__LZcheckwidthFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip.__LZcheckwidth)
+ vip.__LZcheckwidthFunction( this );
}
}
@@ -2073,8 +2076,9 @@
this.sprite.setHeight(newsize);
if (this.onheight.ready) this.onheight.sendEvent( newsize );
- if (this.vip.__LZcheckheight)
- this.vip.__LZcheckheightFunction( this );
+ var vip:LzView = (this.immediateparent cast LzView);
+ if (vip.__LZcheckheight)
+ vip.__LZcheckheightFunction( this );
}
}
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
2008-03-25 19:44:06 UTC (rev 8401)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
2008-03-25 20:14:07 UTC (rev 8402)
@@ -144,8 +144,6 @@
super.destroy.apply(this, arguments);
}
-var isprite:LzInputTextSprite = null;
-
/**
* Called to create the sprite object. May be overridden to use a specific
* version, e.g. LzTextSprite();
@@ -153,15 +151,6 @@
*/
override function __makeSprite(args) {
this.sprite = new LzInputTextSprite(this, args);
- // TODO [hqm 2008-03] fix this when compiler can handle type casts
properly.
- // We can remove 'tsprite' and 'isprite' then.
- if ($swf9) {
- this.isprite = LzInputTextSprite(this.sprite);
- } else {
- this.isprite = this.sprite;
- }
- this.tsprite = this.sprite;
-
}
var _focused = false;
@@ -169,13 +158,15 @@
/** @access private */
function _gotFocusEvent(){
this._focused = true;
- this.isprite.gotFocus();
+ var isprite:LzInputTextSprite = (this.sprite cast LzInputTextSprite);
+ isprite.gotFocus();
}
/** @access private */
function _gotBlurEvent(){
this._focused = false;
- this.isprite.gotBlur();
+ var isprite:LzInputTextSprite = (this.sprite cast LzInputTextSprite);
+ isprite.gotBlur();
}
// Receive input text events from sprite
@@ -192,10 +183,11 @@
}
} else if (eventname == 'onchange') {
//multiline resizable fields adjust their height
+ var isprite:LzInputTextSprite = (this.sprite cast LzInputTextSprite);
if ( this.multiline &&
this.sizeToHeight &&
- this.height != this.isprite.getTextHeight() ) {
- this.setHeight(this.isprite.getTextfieldHeight());
+ this.height != isprite.getTextHeight() ) {
+ this.setHeight(isprite.getTextfieldHeight());
}
if (this.ontext.ready) this.ontext.sendEvent(value);
return;
@@ -211,7 +203,8 @@
* @access protected
*/
function updateData (){
- return this.isprite.getText();
+ var isprite:LzInputTextSprite = (this.sprite cast LzInputTextSprite);
+ return isprite.getText();
}
public var enabled = true;
@@ -224,7 +217,8 @@
function setEnabled (enabled){
this.setAttribute('focusable', enabled);
this.enabled = enabled;
- this.isprite.setEnabled(enabled);
+ var isprite:LzInputTextSprite = (this.sprite cast LzInputTextSprite);
+ isprite.setEnabled(enabled);
if (this.onenabled.ready) this.onenabled.sendEvent(enabled);
}
@@ -238,7 +232,8 @@
*/
function setHTML (htmlp) {
if (this.capabilities['htmlinputtext']) {
- this.isprite.setHTML(htmlp);
+ var isprite:LzInputTextSprite = (this.sprite cast LzInputTextSprite);
+ isprite.setHTML(htmlp);
} else if ($debug) {
this.__warnCapability('inputtext.setHTML()');
}
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
2008-03-25 19:44:06 UTC (rev 8401)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
2008-03-25 20:14:07 UTC (rev 8402)
@@ -79,8 +79,6 @@
var gridFit = "subpixel";
var sharpness = 0;
var thickness = 0;
- var tsprite:LzTextSprite = null;
-
function LzText ( parent:* , attrs:* , children:* = null, instcall:* =
null) {
super(parent,attrs,children,instcall);
}
@@ -208,7 +206,10 @@
// [max] had to do this because text fields don't have a height until
they're attached into the DOM.
// multiline resizable fields adjust their height
if (this.sizeToHeight) {
- var h = this.tsprite.getTextfieldHeight();
+
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+
+ var h = tsprite.getTextfieldHeight();
if (h > 0) {
this.setHeight(h);
}
@@ -234,7 +235,8 @@
args.font = this.fontname;
args.fontsize = this.fontsize;
args.fontstyle = this.fontstyle;
- this.tsprite.__initTextProperties(args);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.__initTextProperties(args);
args.font = LzNode._ignoreAttribute;
args.fontsize = LzNode._ignoreAttribute;
@@ -258,7 +260,7 @@
this.setMultiline( this.multiline );
- this.tsprite.setText( this.text );
+ tsprite.setText( this.text );
// To compute our width:
// + if text is multiline:
@@ -360,12 +362,6 @@
override function __makeSprite(args) {
//Debug.write('__makeSprite', args);
this.sprite = new LzTextSprite(this, args);
- // TODO [hqm 2008-03] fix this when compiler can handle type casts properly
- if ($swf9) {
- this.tsprite = LzTextSprite(this.sprite);
- } else {
- this.tsprite = this.sprite;
- }
}
@@ -374,7 +370,8 @@
* @access private
*/
override function getMCRef () {
- return this.tsprite.getMCRef();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getMCRef();
// return this.__LZtextclip;
}
@@ -438,7 +435,8 @@
* @param Boolean val: if true, the textfield will recompute it's width after
setText() is called
*/
function setResize ( val ){
- this.tsprite.setResize(val);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setResize(val);
this.resize = val;
}
@@ -447,11 +445,12 @@
* @access private
*/
override function setWidth ( val ){
- this.tsprite.setWidth(val);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setWidth(val);
super.setWidth.apply(this, arguments);
// recalculate height
if (this.sizeToHeight) {
- var h = this.tsprite.getTextfieldHeight();
+ var h = tsprite.getTextfieldHeight();
if (h > 0) {
this.setHeight(h);
}
@@ -485,8 +484,8 @@
// setText that recomputes the dimensions if needed. But we want
// to omit the call to sprite.setText(). I don't want to refactor
// setText to introduce a new level of function call there though.
- //this.tsprite.appendText( t );
- //this.text = this.tsprite.getText();
+ //tsprite.appendText( t );
+ //this.text = tsprite.getText();
this.setText( this.getText() + t );
}
@@ -504,7 +503,8 @@
*/
function setMaxLength ( val ){
if (val == null || val == '') return;
- this.tsprite.setMaxLength(val);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setMaxLength(val);
this.maxlength = val;
if (this.onmaxlength.ready) this.onmaxlength.sendEvent(val);
@@ -520,7 +520,8 @@
*/
function setPattern ( val ){
if (val == null || val == '') return;
- this.tsprite.setPattern(val);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setPattern(val);
this.pattern = val;
if (this.onpattern.ready) this.onpattern.sendEvent(val);
}
@@ -529,7 +530,8 @@
* Calculates the current width of the text held by the text field.
*/
function getTextWidth ( ){
- return this.tsprite.getTextWidth();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getTextWidth();
}
@@ -537,7 +539,8 @@
* Calculates the current height of the text held by the text field.
*/
function getTextHeight ( ){
- return this.tsprite.getTextHeight();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getTextHeight();
//return this.__LZtextclip.textHeight;
}
@@ -583,14 +586,16 @@
* @access private
*/
function setScroll ( h ){
- this.tsprite.setScroll(h);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setScroll(h);
}
/**
* @access private
*/
function getScroll ( ){
- return this.tsprite.getScroll();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getScroll();
}
@@ -598,7 +603,8 @@
* @access private
*/
function getMaxScroll ( ){
- return this.tsprite.getMaxScroll();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getMaxScroll();
}
@@ -606,7 +612,8 @@
* @access private
*/
function getBottomScroll ( ){
- return this.tsprite.getBottomScroll();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getBottomScroll();
}
/**
@@ -616,7 +623,8 @@
* (n is always < 0)
*/
function setXScroll ( n ){
- this.tsprite.setXScroll(n);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setXScroll(n);
//this.onxscroll.sendEvent(??);
}
@@ -626,7 +634,8 @@
* vertically (n is always < 0)
*/
function setYScroll ( n ){
- this.tsprite.setYScroll(n);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setYScroll(n);
//this.onyscroll.sendEvent(this.yscroll);
}
@@ -743,11 +752,12 @@
// force to a string
t = '' + t;
if (force != true && t == this.text) return;
- if (this.visible) this.tsprite.setVisible(this.visible);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ if (this.visible) tsprite.setVisible(this.visible);
if (this.maxlength != null && t.length > this.maxlength){
t = t.substring(0, this.maxlength);
}
- this.tsprite.setText(t);
+ tsprite.setText(t);
this.text = t;
if (this.width == 0 || (this.resize && this.multiline == false)) {
@@ -761,7 +771,7 @@
//resizable fields adjust their height
if (this.sizeToHeight) {
- var h = this.tsprite.getTextfieldHeight();
+ var h = tsprite.getTextfieldHeight();
if (h > 0) {
this.setHeight(h);
}
@@ -876,14 +886,16 @@
*/
function setSelectable ( isSel ){
this.selectable = isSel;
- this.tsprite.setSelectable(isSel);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setSelectable(isSel);
}
/**
* @access private
*/
override function setFontName ( fname ,prop = null){
- this.tsprite.setFontName(fname);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setFontName(fname);
this.fontname = fname;
// force recompute of height if needed
this.setText( this.getText(), true);
@@ -893,7 +905,8 @@
* @access private
*/
function setFontSize ( fsize ){
- this.tsprite.setFontSize(fsize);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setFontSize(fsize);
this.fontsize = fsize;
// force recompute of height if needed
this.setText( this.getText(), true);
@@ -903,7 +916,8 @@
* @access private
*/
function setFontStyle ( fstyle ){
- this.tsprite.setFontStyle(fstyle);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setFontStyle(fstyle);
this.fontstyle = fstyle;
}
@@ -915,7 +929,8 @@
* @param Boolean ml: true if the text field should allow multiple lines
*/
function setMultiline ( ml ){
- this.tsprite.setMultiline(ml);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setMultiline(ml);
this.multiline = (ml == true);
}
@@ -925,7 +940,8 @@
* @access private
*/
function setBorder ( onroff ){
- this.tsprite.setBorder(onroff);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setBorder(onroff);
}
/**
@@ -933,7 +949,8 @@
* @todo should wrapping be made orthogonal to the multiline flag?
*/
function setWordWrap ( wrap ){
- this.tsprite.setWordWrap(wrap);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setWordWrap(wrap);
}
@@ -941,7 +958,8 @@
* @access private
*/
function setEmbedFonts ( onroff ){
- this.tsprite.setEmbedFonts(onroff);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setEmbedFonts(onroff);
}
/***
@@ -953,7 +971,8 @@
if (this.capabilities.advancedfonts) {
if ((aliasType == "normal") || (aliasType == "advanced")) {
this.antiAliasType = aliasType;
- this.tsprite.setAntiAliasType(aliasType);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setAntiAliasType(aliasType);
} else if ($debug) {
Debug.warn("antiAliasType invalid, must be 'normal' or 'advanced',
but you said '" + aliasType + "'");
}
@@ -982,7 +1001,8 @@
if (this.capabilities.advancedfonts) {
if ((gridFit == "none") || (gridFit == "pixel") || (gridFit ==
"subpixel")) {
this.gridFit = gridFit;
- this.tsprite.setGridFit(gridFit);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setGridFit(gridFit);
} else if ($debug) {
Debug.warn("gridFit invalid, must be 'none', 'pixel', or
'subpixel' but you said '" + gridFit + "'");
}
@@ -1012,7 +1032,8 @@
if (this.capabilities.advancedfonts) {
if ((sharpness >= -400) && (sharpness <= 400)) {
this.sharpness = sharpness;
- this.tsprite.setSharpness(sharpness);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setSharpness(sharpness);
} else if ($debug) {
Debug.warn("sharpness out of range, must be -400 to 400");
}
@@ -1042,7 +1063,8 @@
if (this.capabilities.advancedfonts) {
if ((thickness >= -200) && (thickness <= 200)) {
this.thickness = thickness;
- this.tsprite.setThickness(thickness);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setThickness(thickness);
} else if ($debug) {
Debug.warn("thickness out of range, must be -200 to 200");
}
@@ -1078,7 +1100,8 @@
*
*/
function setHScroll (s){
- this.tsprite.setHScroll(s);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setHScroll(s);
}
@@ -1093,7 +1116,8 @@
* selected.
*/
function setSelection ( start , end ){
- this.tsprite.setSelection(start, end);
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ tsprite.setSelection(start, end);
/*
var sf = targetPath( this.__LZtextclip);
if( Selection.getFocus() != sf ) {
@@ -1115,7 +1139,8 @@
* based. If the text cursor is not in the textfield, this method returns -1.
*/
function getSelectionPosition ( ){
- return this.tsprite.getSelectionPosition();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getSelectionPosition();
/*
var sf = targetPath( this.__LZtextclip) ;
if( Selection.getFocus() != sf ) {
@@ -1132,7 +1157,8 @@
* If the text cursor is not in the textfield, this method returns -1.
*/
function getSelectionSize ( ){
- return this.tsprite.getSelectionSize();
+ var tsprite:LzTextSprite = (this.sprite cast LzTextSprite);
+ return tsprite.getSelectionSize();
/*
var sf = targetPath( this.__LZtextclip);
if( Selection.getFocus() != sf ) {
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins