[Laszlo-checkins] r13288 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9
bargull@openlaszlo.org
bargull at openlaszlo.org
Sat Mar 14 17:22:30 PDT 2009
Author: bargull
Date: 2009-03-14 17:22:27 -0700 (Sat, 14 Mar 2009)
New Revision: 13288
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzHTTPLoader.as
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as
Log:
Change 20090314-bargull-ky7 by bargull at dell--p4--2-53 on 2009-03-14 22:32:38
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: replace flash.utils.setTimeout with LzTimeKernel.setTimeout
New Features:
Bugs Fixed: LPP-7899 (SWF9: remove usage of flash.utils.setTimeout)
Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Replaced remaining calls to flash.utils.setTimeout with LzTimeKernel.setTimeout (to reduce mem-leaks see LPP-7763).
Tests:
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzHTTPLoader.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzHTTPLoader.as 2009-03-14 22:09:19 UTC (rev 13287)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzHTTPLoader.as 2009-03-15 00:22:27 UTC (rev 13288)
@@ -22,8 +22,6 @@
import flash.net.URLRequest;
import flash.net.URLRequestHeader;
import flash.net.URLRequestMethod;
- import flash.utils.clearTimeout;
- import flash.utils.setTimeout;
}#
static const GET_METHOD:String = "GET";
@@ -225,7 +223,7 @@
var callback:Function = function () :void {
LzHTTPLoader.__LZcheckXMLHTTPTimeouts(lid);
}
- var timeoutid:uint = flash.utils.setTimeout(callback, duration);
+ var timeoutid:uint = LzTimeKernel.setTimeout(callback, duration);
LzHTTPLoader.activeRequests[lid][2] = timeoutid;
}
@@ -235,7 +233,7 @@
//Debug.write("remove timeout for id=%s", lid);
var reqarr:Array = LzHTTPLoader.activeRequests[lid];
if (reqarr && reqarr[0] === httploader) {
- clearTimeout(reqarr[2]);
+ LzTimeKernel.clearTimeout(reqarr[2]);
delete LzHTTPLoader.activeRequests[lid];
}
}
@@ -260,7 +258,7 @@
var callback:Function = function () :void {
LzHTTPLoader.__LZcheckXMLHTTPTimeouts(lid);
}
- var timeoutid:uint = flash.utils.setTimeout(callback, now - dstimeout);
+ var timeoutid:uint = LzTimeKernel.setTimeout(callback, now - dstimeout);
req[2] = timeoutid;
}
}
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as 2009-03-14 22:09:19 UTC (rev 13287)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as 2009-03-15 00:22:27 UTC (rev 13288)
@@ -5,7 +5,7 @@
* Use is subject to license terms.
*
* @topic Kernel
- * @subtopic AS2
+ * @subtopic swf9
*/
/**
@@ -15,10 +15,11 @@
public class LzInputTextSprite extends LzTextSprite {
#passthrough (toplevel:true) {
- import flash.display.*;
- import flash.events.*;
- import flash.text.*;
- import flash.utils.setTimeout;
+ import flash.display.InteractiveObject;
+ import flash.events.Event;
+ import flash.events.FocusEvent;
+ import flash.text.TextField;
+ import flash.text.TextFieldType;
}#
#passthrough {
@@ -118,7 +119,7 @@
*/
function __lostFocus (event:FocusEvent) :void {
// defer execution, see swf8 kernel
- setTimeout(this.__handlelostFocus, 1, event);
+ LzTimeKernel.setTimeout(this.__handlelostFocus, 1, event);
}
/**
More information about the Laszlo-checkins
mailing list