[Laszlo-dev] For Review: Change 20090218-bargull-hTy Summary: use flash.utils.Timer for LzTimeKernel
André Bargull
andre.bargull at udo.edu
Wed Feb 18 05:55:55 PST 2009
Change 20090218-bargull-hTy by bargull at dell--p4--2-53 on 2009-02-18 02:13:27
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: use flash.utils.Timer for LzTimeKernel
New Features:
Bugs Fixed: LPP-7763
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Changed LzTimeKernelClass#setTimeout, #setInterval, #clearTimeout,
#clearInterval to use flash.utils.Timer instead of the functions defined
in flash.utils.*
It was necessary to change the implementation because the setTimeout
etc. functions apparently create memory leaks within the flash player.
I created a subclass of flash.utils.Timer so that we can easily identify
each instance (timerID property) and to support functions callbacks
instead the event based mechanism (closure and arguments property). To
reduce the overall number of LzKernelTimer instances up to MAX_POOL
(currently set to 10) are cached.
Tests:
testcase from bugreport, note that cpu usage stays low
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzTimeKernel.as
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20090218-bargull-hTy.tar
More information about the Laszlo-dev
mailing list