[Laszlo-checkins] r12259 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9
bargull@openlaszlo.org
bargull at openlaszlo.org
Mon Dec 29 09:09:00 PST 2008
Author: bargull
Date: 2008-12-29 09:08:57 -0800 (Mon, 29 Dec 2008)
New Revision: 12259
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Log:
Change 20081228-bargull-DxJ by bargull at dell--p4--2-53 on 2008-12-28 14:58:39
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix ReferenceError in LzSprite
New Features:
Bugs Fixed: LPP-7528
Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
- "smoothing" is only available for Bitmap
- call "unloadAndStop()" for swf10, this helps to reduce possible mem-leaks in the flash player
Tests:
see testcase
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-12-29 09:00:09 UTC (rev 12258)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-12-29 17:08:57 UTC (rev 12259)
@@ -1,7 +1,7 @@
/**
* LzSprite.as
*
- * @copyright Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2007-2009 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @topic Kernel
@@ -376,7 +376,6 @@
// These progress event listeners can only be installed after the init event
// has been received. You get an error if you try to add them before this.
var loader:Loader = Loader(event.target.loader);
- event.target.content.smoothing = true;
var info:LoaderInfo = LoaderInfo(loader.contentLoaderInfo);
info.addEventListener(ProgressEvent.PROGRESS, loaderEventHandler);
info.addEventListener(Event.OPEN, loaderEventHandler);
@@ -410,7 +409,7 @@
// avoid security exceptions
if (info.parentAllowsChild) {
if (info.content is AVM1Movie) {
- if ($debug) {
+ if ($debug) {
Debug.warn("Playback control will not work for the resource. Please update or recompile the resource for Flash 9.", this.resource);
}
} else if (info.content is MovieClip) {
@@ -420,6 +419,8 @@
this.loaderMC.addEventListener(Event.ENTER_FRAME, updateFrames);
this.owner.resourceevent('play', null, true);
this.playing = this.owner.playing = true;
+ } else if (info.content is Bitmap) {
+ (info.content as Bitmap).smoothing = true;
}
}
@@ -1295,8 +1296,11 @@
// throws an error if stream has already finished loading
}
// unload any content, call after close()
- // for swf10: this.imgLoader.unloadAndStop();
- this.imgLoader.unload();
+ if ($swf10) {
+ this.imgLoader['unloadAndStop']();
+ } else {
+ this.imgLoader.unload();
+ }
}
if (this.resourceContainer != null) {
this.removeChild(this.resourceContainer);
More information about the Laszlo-checkins
mailing list