[Laszlo-checkins] r11617 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9
bargull@openlaszlo.org
bargull at openlaszlo.org
Mon Oct 27 12:57:23 PDT 2008
Author: bargull
Date: 2008-10-27 12:57:20 -0700 (Mon, 27 Oct 2008)
New Revision: 11617
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Log:
Change 20081027-bargull-gWX by bargull at dell--p4--2-53 on 2008-10-27 16:47:19
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: clear resource-cache
New Features:
Bugs Fixed: LPP-7171
Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Clear the resource-cache when load a new resource and also in "unload()".
Tests:
testcase from bug (onclick-events don't work atm, you need to change the resource manually)
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-10-27 19:56:53 UTC (rev 11616)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2008-10-27 19:57:20 UTC (rev 11617)
@@ -240,6 +240,9 @@
} else if (this.isaudio) {
// unload previous sound-resource
this.unloadSound();
+ } else {
+ // clear resource cache
+ this.resourceCache = null;
}
this.__isinternalresource = true;
@@ -310,7 +313,6 @@
loadurl = lz.Browser.makeProxiedURL(params);
}
-
if (getFileType(url, filetype) == "mp3") {
// unload previous image-resource and sound-resource
this.unload();
@@ -348,7 +350,6 @@
}
imgLoader.load(new URLRequest(loadurl), LzSprite.loaderContext);
-
}
}
@@ -1181,10 +1182,10 @@
}
}
-/**
- * Puts this sprite in front of one of its siblings.
- * @param LzSprite v: The sprite this sprite should go in front of. If the passed sprite is null or not a sibling, the method has no effect.
- */
+ /**
+ * Puts this sprite in front of one of its siblings.
+ * @param LzSprite v: The sprite this sprite should go in front of. If the passed sprite is null or not a sibling, the method has no effect.
+ */
public function sendInFrontOf( sprite ){
if (!this.isroot) {
var i = parent.getChildIndex(sprite);
@@ -1251,6 +1252,7 @@
this.loaderMC = null;
}
this.imgLoader = null;
+ this.resourceCache = null;
}
public function setAccessible(accessible:*) {
More information about the Laszlo-checkins
mailing list