Author: hqm
Date: 2008-02-25 20:08:31 -0800 (Mon, 25 Feb 2008)
New Revision: 8102
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzDefs.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
Log:
Change 20080225-hqm-U by [EMAIL PROTECTED] on 2008-02-25 21:48:59 EST
in /Users/hqm/openlaszlo/devildog2
for http://svn.openlaszlo.org/openlaszlo/branches/devildog
Summary: add some AS3 type declartions
New Features:
Bugs Fixed:
Technical Reviewer: max
QA Reviewer: ptw
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Add some type declarations, in order to get some of the benefits from Flex
compiler,
and to aid in compile time type checking.
Tests:
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
2008-02-26 03:57:52 UTC (rev 8101)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
2008-02-26 04:08:31 UTC (rev 8102)
@@ -52,18 +52,18 @@
var calcMethod:Function;
- var lastIterationTime;
-var currentValue;
-var beginPole;
-var endPole;
+ var lastIterationTime:Number;
+ var currentValue:Number;
+ var beginPole:Number;
+ var endPole:Number;
- var doBegin;
+ var doBegin:Boolean;
-var beginPoleDelta = .25;
-var endPoleDelta = .25;
+ var beginPoleDelta:Number = .25;
+ var endPoleDelta:Number = .25;
- var primary_K;
- var origto;
+ var primary_K:Number;
+ var origto:Number;
//setters.from = "defaultSet";
//setters.to = "defaultSet";
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
2008-02-26 03:57:52 UTC (rev 8101)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
2008-02-26 04:08:31 UTC (rev 8102)
@@ -530,18 +530,22 @@
this.updateDel.unregisterAll();
this.animators = null;
this.actAnim = null;
+ var anims:Array = LFCView(this.parent).animators;
- if ( this.parent.animators && this.parent.animators.length ){
- for ( var i = 0 ; i < this.parent.animators.length ; i++ ){
- if ( this.parent.animators[ i ] == this ){
- this.parent.animators.splice( i , 1 );
+
+ if ( anims && anims.length ){
+ for ( var i = 0 ; i < anims.length ; i++ ){
+ if ( anims[ i ] == this ){
+ anims.splice( i , 1 );
break
}
}
- for ( var i = 0 ; i < this.parent.actAnim.length ; i++ ){
- if ( this.parent.actAnim[ i ] == this ){
- this.parent.actAnim.splice( i , 1 );
+ var pactAnim = LzAnimatorGroup(this.parent).actAnim;
+
+ for ( var i = 0 ; i < pactAnim.length ; i++ ){
+ if ( pactAnim[ i ] == this ){
+ pactAnim.splice( i , 1 );
break
}
}
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzDefs.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzDefs.js 2008-02-26
03:57:52 UTC (rev 8101)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzDefs.js 2008-02-26
04:08:31 UTC (rev 8102)
@@ -21,7 +21,7 @@
/**
* @access private
*/
- public function sendEvent (...rest ){};
+ public function sendEvent (sd = null ){};
/**
* @access private
@@ -31,7 +31,7 @@
/**
* @access private
*/
- function removeDelegate (...rest){ };
+ function removeDelegate (d = null){ };
/**
* @access private
@@ -56,7 +56,7 @@
public function LzNullEvent () {
}
- public override function sendEvent (...rest) {
+ public override function sendEvent (sd = null) {
if ($debug) {
Debug.debug('Inefficient call to %s', arguments.callee);
}
@@ -64,7 +64,7 @@
}
-var LzDeclaredEvent = new LzNullEvent();
+var LzDeclaredEvent:LzNullEvent = new LzNullEvent();
/** A map of element names, to functions that create instances of the
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-02-26
03:57:52 UTC (rev 8101)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-02-26
04:08:31 UTC (rev 8102)
@@ -35,14 +35,14 @@
var __LZdeferDelegates:Boolean = false;
var _instanceAttrs:* = null;
- var _instanceChildren:* = null;
- var __LZisnew:* = null;
+ var _instanceChildren:Array = null;
+ var __LZisnew:Boolean = false;
var __LZstyleConstraints:* = null;
- var syncNew:* = null;
- var __LZdeferredcarr:* = null;
- var _events:* = null;
+ // var syncNew:Boolean = null;
+ var __LZdeferredcarr:Array = null;
+ var _events:Array = null;
var data:* = null;
- var classChildren:* = null;
+ var classChildren:Array = null;
//////////////////
@@ -243,8 +243,9 @@
this._profile_instantiator_name =
this['constructor']._dbg_name;
}
}
-}
+ }
+
function constructWithArgs(args:*) {
}
@@ -304,20 +305,20 @@
* e.g. before a view displays, or before a layout affects its subviews.
* @lzxtype event
*/
- var oninit = LzDeclaredEvent;
+ var oninit:LzEventInterface = LzDeclaredEvent;
/** This is the first event a node sends, right
* at the end of the instantiation process, but before any subnodes
* have been created or references resolved
* @lzxtype event
*/
- var onconstruct = LzDeclaredEvent;
+ var onconstruct:LzEventInterface = LzDeclaredEvent;
/** The ondata script is executed when the data selected by a view's datapath
* changes.
* @lzxtype event
*/
- var ondata = LzDeclaredEvent;
+ var ondata:LzEventInterface = LzDeclaredEvent;
/**
* If replicated, the index of this clone
* @lzxtype event
@@ -328,28 +329,28 @@
* @access private
* @lzxtype event
*/
- var onclonenumber = LzDeclaredEvent;
+ var onclonenumber:LzEventInterface = LzDeclaredEvent;
/**
* @lzxtype event
* @access private
*/
- var ondestroy = LzDeclaredEvent;
+ var ondestroy:LzEventInterface = LzDeclaredEvent;
/** @access private */
- var __LZlateinit = null;
+ var __LZlateinit:Boolean = false;
/** @access private */
- var __LZpreventSubInit = null;
+ var __LZpreventSubInit:Array = null;
/** @access private */
var __LZresolveDict = null;
/** @access private */
var __LZsourceLocation = null;
/** @access private */
- var __LZUID = null;
+ var __LZUID:String = null;
/** @access private */
- var __LZdelegates = null;
+ var __LZdelegates:Array = null;
/** @access private */
-static var defaultattrs:* = new LzInheritedHash({ $hasdefaultattrs : true });
+static var defaultattrs:LzInheritedHash = new LzInheritedHash({
$hasdefaultattrs : true });
var defaultattrs;
var $hasdefaultattrs:*;
@@ -365,7 +366,7 @@
* @see oninit
* @access private
*/
- var isinited = false;
+ var isinited:Boolean = false;
/** An array of all of the LzNodes which consider
* this LzNode their parent. This list is similar to the subviews list,
@@ -375,7 +376,7 @@
* @type Array
* @keywords readonly
*/
- var subnodes = null;
+ var subnodes:Array = null;
/** Specifies the data source for this node and its children.
* If the value begins with an identifier followed by a colon, the
@@ -389,7 +390,7 @@
* @lzxtype string
* @keywords readonly
*/
- var datapath = null;
+ var datapath:* = null;
/** The execution of a <class>node</class>'s <method>init</method> method and
* sending of the <event>oninit</event> event is under the control
@@ -416,11 +417,11 @@
* @lzxdefault "normal"
* @keywords final
*/
- var initstage = null;
+ var initstage:String = null;
/** @access private */
- var $isstate = false;
+ var $isstate:Boolean = false;
/** @access private */
- var doneClassRoot = false;
+ var doneClassRoot:Boolean = false;
/** Reference to the node that was passed as this
* node's ancestor in the constructor. If this node was created
@@ -430,17 +431,17 @@
* See also, immediateparent.
* @keywords readonly
*/
- var parent;
+ var parent:LFCNode;
/** @access private */
- var children = null;
+ var children:Array = null;
/** If this node is replicated due to data
* replication, the LzReplicationManager which controls this node.
* @type LzNode
* @keywords readonly
*/
- var cloneManager = null;
+ var cloneManager:LFCNode = null;
/** The name for this subnode. If given, then this node's
* parent and immediate parent will store a pointer to this node as the
@@ -449,7 +450,7 @@
* @keywords final
* @lzxtype token
*/
- var name = null;
+ var name:String = null;
/** A unique identifier for this element. Can be used as a global
* variable name in JavaScript code.
@@ -459,7 +460,7 @@
* @keywords final
* @lzxtype token
*/
- var id = null;
+ var id:String = null;
/** An attribute used in container classes. If
* set to a non-null value, this forces this node to run its
determinePlacement
@@ -476,7 +477,7 @@
* @lzxtype token
* @keywords final
*/
- var defaultplacement = null;
+ var defaultplacement:String = null;
/** Instructions to this element's container about where it should go
* within its container's internal hierarchy. See
@@ -485,13 +486,13 @@
* @lzxtype string
* @keywords final
*/
- var placement = null;
+ var placement:String = null;
// Initial values
/** @access private */
var $cfn = 0;
/** @access private */
- var __LZdeleted = false;
+ var __LZdeleted:Boolean = false;
/** Reference to this nodes's parent
* in the node hierarchy. This will be different from "parent"
@@ -519,13 +520,13 @@
* @type LzNode
* @keywords readonly
*/
- var classroot;
+ var classroot:LFCNode;
/** The depth of this node in the overall node hierarchy
* @type Number
* @keywords readonly
*/
- var nodeLevel;
+ var nodeLevel:int;
if ($debug) {
/** The source locator table maps source locations to nodes
@@ -881,7 +882,7 @@
* @keywords final
* @lzxdefault "false"
*/
-var ignoreplacement;
+ var ignoreplacement:Boolean;
/**
@@ -890,7 +891,7 @@
*/
function __LZapplyArgs ( args , constcall = null ){
var oset = {};
- var hasset = [];
+ var hasset:Object = [];
var hasearly = null;
if ( '$setters' in args && args.$setters ){
this.__LZsetSetters( args.$setters );
@@ -1916,7 +1917,7 @@
//remove __LZdelegates
if (this.__LZdelegates != null) {
- for ( var i = this.__LZdelegates.length - 1; i >= 0; i-- ){
+ for ( var i:int = this.__LZdelegates.length - 1; i >= 0; i-- ){
this.__LZdelegates[ i ].unregisterAll();
}
}
@@ -1924,14 +1925,14 @@
//remove events
if (('_events' in this) && (this._events != null)) {
- for (var i = this._events.length-1; i >=0; i--){
+ for (var i:int = this._events.length-1; i >=0; i--){
this._events[i].clearDelegates();
}
}
this._events = null;
if (this.immediateparent && this.immediateparent.subnodes) {
- for( var i = this.immediateparent.subnodes.length - 1; i >= 0; i-- ){
+ for( var i:int = this.immediateparent.subnodes.length - 1; i >= 0; i--
){
if ( this.immediateparent.subnodes[ i ] == this ){
this.immediateparent.subnodes.splice( i , 1 );
break;
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js
2008-02-26 03:57:52 UTC (rev 8101)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js
2008-02-26 04:08:31 UTC (rev 8102)
@@ -337,7 +337,7 @@
public class LzEvent extends LzEventInterface {
- var delegateList:* = null;
+ var delegateList:Array = null;
/**
* @param Object eventSender: The owner of this event
@@ -375,7 +375,7 @@
/** True when event is being sent.
* @type Boolean
*/
-var locked = false;
+ var locked:Boolean = false;
/**
@@ -398,11 +398,7 @@
*
* @param sd: The data to send with the event.
*/
-public override function sendEvent ( ...rest ){
- // TODO [ hqm 2007-12] replace this with optional arg when compiler
supports it
- var sd:* = rest[0];
- ////////////////////////////////////////////////////////////////
-
+public override function sendEvent ( sd = null ){
if ( this.locked ) { return; } //don't allow for multiple calls
var dll = this.delegateList.length;
@@ -468,12 +464,8 @@
*
* @param LzDelegate d: The delegate to remove from the delegateList.
*/
-override function removeDelegate ( ...rest ){
- // TODO [ hqm 2007-12] replace this with optional arg when compiler
supports it
- var d:* = rest[0];
-////////////////////////////////////////////////////////////////
+override function removeDelegate ( d = null ){
-
var dll = this.delegateList.length;
for (var i = 0; i < dll; i++){
if (this.delegateList[i] == d){
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
2008-02-26 03:57:52 UTC (rev 8101)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
2008-02-26 04:08:31 UTC (rev 8102)
@@ -28,50 +28,50 @@
super(parent,attrs,children,instcall);
}
- var animators:*;
- var _height;
- var _width;
- var _y;
- var _x;
+ var animators:Array;
+ var _height:Number;
+ var _width:Number;
+ var _y:Number;
+ var _x:Number;
var _resource;
var __LZhaser;
- var onaddsubview = LzDeclaredEvent;
+ var onaddsubview:LzEventInterface = LzDeclaredEvent;
/** @access private */
- var onbgcolor = LzDeclaredEvent;
+ var onbgcolor:LzEventInterface = LzDeclaredEvent;
/** The onblur script is executed when an element loses focus either
* by the pointing device or by tabbing navigation.
* @lzxtype event
*/
- var onblur = LzDeclaredEvent;
+ var onblur:LzEventInterface = LzDeclaredEvent;
/** The onclick script is executed when the pointing device button is
* clicked over an element.
* @lzxtype event
*/
- var onclick = LzDeclaredEvent;
+ var onclick:LzEventInterface = LzDeclaredEvent;
/** @access private */
- var onclickable = LzDeclaredEvent;
+ var onclickable:LzEventInterface = LzDeclaredEvent;
/** The onfocus script is executed when an element receives focus
* either by the pointing device or by tabbing navigation.
* @lzxtype event
*/
- var onfocus = LzDeclaredEvent; // From LzFocus
+ var onfocus:LzEventInterface = LzDeclaredEvent; // From LzFocus
/** @lzxtype event */
- var onframe = LzDeclaredEvent;
+ var onframe:LzEventInterface = LzDeclaredEvent;
/** Event for changes to view's <attribute>height</attribute> property
* @lzxtype event
*/
- var onheight = LzDeclaredEvent;
+ var onheight:LzEventInterface = LzDeclaredEvent;
/** @lzxtype event */
- var onimload = LzDeclaredEvent;
+ var onimload:LzEventInterface = LzDeclaredEvent;
/** The onkeyup script is executed when this view has the focus and a
* key is released. This event is sent with the keycode for the key that
* went up.
* @lzxtype event
*/
- var onkeyup = LzDeclaredEvent; // From LzFocus
+ var onkeyup:LzEventInterface = LzDeclaredEvent; // From LzFocus
/** The onkeydown script is executed when this view has the focus and
* a key is pressed down. Multiple key down events are sent for a
@@ -80,142 +80,142 @@
* down.
* @lzxtype event
*/
- var onkeydown = LzDeclaredEvent; // From LzFocus
+ var onkeydown:LzEventInterface = LzDeclaredEvent; // From LzFocus
/** @lzxtype event */
- var onlastframe = LzDeclaredEvent;
+ var onlastframe:LzEventInterface = LzDeclaredEvent;
/** @lzxtype event */
- var onload = LzDeclaredEvent;
+ var onload:LzEventInterface = LzDeclaredEvent;
/** @lzxtype event */
- var onloadperc = LzDeclaredEvent;
+ var onloadperc:LzEventInterface = LzDeclaredEvent;
/** <event>onerror</event>: Sent when there is an error loading the view's
resource.
* The argument sent with the event is the error string sent by the server.
* @access private
* @lzxtype event
*/
- var onerror = LzDeclaredEvent;
+ var onerror:LzEventInterface = LzDeclaredEvent;
/**
* <event>ontimeout</event>: Sent when the request to load media for the view
times
* out
* @lzxtype event
*/
- var ontimeout = LzDeclaredEvent;
+ var ontimeout:LzEventInterface = LzDeclaredEvent;
/** The onmousedown script is executed when the pointing device button is
* pressed over an element.
* @lzxtype event
*/
- var onmousedown = LzDeclaredEvent;
+ var onmousedown:LzEventInterface = LzDeclaredEvent;
- var onmousemove = LzDeclaredEvent;
+ var onmousemove:LzEventInterface = LzDeclaredEvent;
/** The onmouseout script is executed when the point device is moved
* so that is is no longer over an element.
* @lzxtype event
*/
- var onmouseout = LzDeclaredEvent;
+ var onmouseout:LzEventInterface = LzDeclaredEvent;
/** The onmouseover script is executed when the pointing device is
* moved onto an element.
* @lzxtype event
*/
- var onmouseover = LzDeclaredEvent;
+ var onmouseover:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onmousetrackover = LzDeclaredEvent;
+ var onmousetrackover:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onmousetrackup = LzDeclaredEvent;
+ var onmousetrackup:LzEventInterface = LzDeclaredEvent;
/** The onmouseup script is executed when the pointing device button is
* released over an element.
* @lzxtype event
*/
- var onmouseup = LzDeclaredEvent;
+ var onmouseup:LzEventInterface = LzDeclaredEvent;
/**
* Sent when a view changes its opacity
* @lzxtype event
*/
- var onopacity = LzDeclaredEvent;
+ var onopacity:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onplay = LzDeclaredEvent;
+ var onplay:LzEventInterface = LzDeclaredEvent;
/**
* Event called when this view removes a subview
* @lzxtype event
*/
- var onremovesubview = LzDeclaredEvent;
+ var onremovesubview:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onresource = LzDeclaredEvent;
+ var onresource:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onresourceheight = LzDeclaredEvent;
+ var onresourceheight:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onresourcewidth = LzDeclaredEvent;
+ var onresourcewidth:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onrotation = LzDeclaredEvent;
+ var onrotation:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onstop = LzDeclaredEvent;
+ var onstop:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var ontotalframes = LzDeclaredEvent;
+ var ontotalframes:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onunstretchedheight = LzDeclaredEvent;
+ var onunstretchedheight:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onunstretchedwidth = LzDeclaredEvent;
+ var onunstretchedwidth:LzEventInterface = LzDeclaredEvent;
/** @lzxtype event */
- var onvisible = LzDeclaredEvent;
+ var onvisible:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onvisibility = LzDeclaredEvent;
+ var onvisibility:LzEventInterface = LzDeclaredEvent;
/** event for changes to view's <attribute>width</attribute> property
* @lzxtype event
*/
- var onwidth = LzDeclaredEvent;
+ var onwidth:LzEventInterface = LzDeclaredEvent;
/** event for changes to view's <attribute>x</attribute> property
* @lzxtype event
*/
- var onx = LzDeclaredEvent;
+ var onx:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onxoffset = LzDeclaredEvent;
+ var onxoffset:LzEventInterface = LzDeclaredEvent;
/** event for changes to view's <attribute>y</attribute> property
* @lzxtype event
*/
- var ony = LzDeclaredEvent;
+ var ony:LzEventInterface = LzDeclaredEvent;
/** @access private
* @lzxtype event
*/
- var onyoffset = LzDeclaredEvent;
+ var onyoffset:LzEventInterface = LzDeclaredEvent;
/**
* The ondblclick script is executed when the pointing device button
@@ -229,7 +229,7 @@
* DOUBLE_CLICK_TIME attribute
* @lzxtype event
*/
- var ondblclick = LzDeclaredEvent;
+ var ondblclick:LzEventInterface = LzDeclaredEvent;
/** @access private */
var DOUBLE_CLICK_TIME = 500;
@@ -382,7 +382,7 @@
* @lzxtype boolean
* @keywords readonly
*/
- var focusable = false;
+ var focusable:Boolean = false;
/** If true, this view "traps" the focus, for example in a window or dialog.
* See focus manager (LzFocus) for more details.
@@ -395,7 +395,7 @@
* @lzxdefault "false"
* @keywords final
*/
- var clip = false;
+ var clip:Boolean = false;
LFCView.setters.rotation= "setRotation";
@@ -411,7 +411,7 @@
* @lzxdefault "left"
* @keywords final
*/
- var align = "left"
+ var align:String = "left"
LFCView.setters.align = "setAlign"
/**
@@ -591,7 +591,7 @@
* @lzxtype boolean
* @lzxdefault "true"
*/
- var visible = true;
+ var visible:Boolean = true;
/** A value of "visible" means that this view is shown. A
* value of "hidden" means that this view is hidden. Setting this attribute
to "collapse"
@@ -631,14 +631,14 @@
* @lzxtype numberExpression
* @lzxdefault "0"
*/
- var x = 0;
+ var x:Number = 0;
/** The vertical offset of this view's upper left corner from the
* upper left corner of its container
* @type Number
* @lzxtype numberExpression
* @lzxdefault "0"
*/
- var y = 0;
+ var y:Number = 0;
/** The rotation value for the view (in degrees).
* Value may be less than zero or greater than 360.
* @type Number
@@ -672,7 +672,7 @@
* @type Number
* @keywords readonly
*/
- var unstretchedwidth = 0;
+ var unstretchedwidth:Number = 0;
/** If stretches is not set to none, the height
* that this view would be if it weren't stretched. This attribute can be used
* to scale a view by a percentage of its original size, or to determine the
@@ -680,12 +680,12 @@
* @type Number
* @keywords readonly
*/
- var unstretchedheight = 0;
+ var unstretchedheight:Number = 0;
/** An array of the subviews that are children of this
* view. This is initialized to an empty array for views that have no
subviews.
* @keywords readonly
*/
- var subviews = [];
+ var subviews:Array = [];
/** @access private */
var __LZclickregion = "LzMouseEvents";
@@ -696,7 +696,7 @@
* @lzxtype numberExpression
* @lzxdefault "0"
*/
- var xoffset = 0;
+ var xoffset:Number = 0;
/**
* Specifies a translation point for drawing of this view. If the yoffset
* is set, then rotation and y position will be calculated by first adding
@@ -704,24 +704,24 @@
* @lzxtype numberExpression
* @lzxdefault "0"
*/
- var yoffset = 0;
+ var yoffset:Number = 0;
/** @access private */
- var __LZrsin = 0;
+ var __LZrsin:Number = 0;
/** @access private */
- var __LZrcos = 1;
+ var __LZrcos:Number = 1;
/** @access private */
- var __LZcaloffset = false;
+ var __LZcaloffset:Boolean = false;
/** @access private */
- var _xscale = 1;
+ var _xscale:Number = 1;
/** @access private */
- var _yscale = 1;
+ var _yscale:Number = 1;
/** The total number of frames for this view's resource.
* @type Number
* @keywords readonly
*/
- var totalframes = 0;
+ var totalframes:Number = 0;
/** If this view has a multi-frame resource, this allows setting which
* resource frame is displayed. Defaults to the first frame (1).
* @lzxtype numberExpression
@@ -735,13 +735,13 @@
* can save CPU usage in cases where the application doesn't need to
* know what frame the resource is showing while it is playing.
*/
- var frame = 0;
+ var frame:Number = 0;
LFCView.setters.frame = "setResourceNumber";
/** @keywords deprecated
* @access private
*/
- var loadperc = 0;
+ var loadperc:Number = 0;
/** For views whose resource is loaded at runtime,
* the ratio of the loaded frames to the total frames. This is a number
between
* zero and 1.
@@ -773,7 +773,7 @@
/** need quick check for viewness
* @access private
*/
- var __LZisView = true;
+ var __LZisView:Boolean = true;
//
// field selected: Setting this attribute calls the abstract method
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins