[Laszlo-checkins] r11270 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9
bargull@openlaszlo.org
bargull at openlaszlo.org
Mon Sep 29 12:53:56 PDT 2008
Author: bargull
Date: 2008-09-29 12:53:54 -0700 (Mon, 29 Sep 2008)
New Revision: 11270
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Log:
Change 20080928-bargull-HGR by bargull at dell--p4--2-53 on 2008-09-28 16:32:23
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: stop playback
New Features:
Bugs Fixed: LPP-7081
Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
This fix only stops looping, to stop playback in general (sound-playback!), we got three options:
- wait for swf10 (which adds Loader#unloadAndStop())
- update swf-resources to use swf9
- evaluate the AVM1Loader-classes [1], maybe it helps, maybe not
(the flash.display.AVM1Movie-class does not support any interaction with the loaded flash movie).
[1]:
http://vegas.googlecode.com/svn/AS3/trunk/src/asgard/display/AVM2Loader.as
http://code.hellokeita.in/public/trunk/as3/br/hellokeita/net/AVM1Loader.as
http://www.libspark.org/svn/as3/ForcibleLoader/src/org/libspark/utils/ForcibleLoader.as
Tests:
attached at bugreport
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-09-29 19:39:38 UTC (rev 11269)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-09-29 19:53:54 UTC (rev 11270)
@@ -1075,6 +1075,17 @@
}
public function unload() {
+ if (this.imgLoader) {
+ try {
+ // close the stream
+ this.imgLoader.close();
+ } catch (error:Error) {
+ // throws an error if stream has already finished loading
+ }
+ // unload any content, call after close()
+ // for swf10: this.imgLoader.unloadAndStop();
+ this.imgLoader.unload();
+ }
if (this.resourceObj) this.removeChild(this.resourceObj);
if (this.isaudio) this.unloadSound();
// clear out cached values
More information about the Laszlo-checkins
mailing list