[Laszlo-checkins] r13167 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9
bargull@openlaszlo.org
bargull at openlaszlo.org
Wed Mar 4 15:44:56 PST 2009
Author: bargull
Date: 2009-03-04 15:44:53 -0800 (Wed, 04 Mar 2009)
New Revision: 13167
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Log:
Change 20090304-bargull-aut by bargull at dell--p4--2-53 on 2009-03-04 23:43:03
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix braino when unloading previous resources
New Features:
Bugs Fixed: LPP-7802 (Stretches doesn't work when changing resources)
Technical Reviewer: ptw
QA Reviewer: max
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Unload any old content before setting the new resource-information.
(resourcewidth/height was set in setResource(), then unload() was called because there was an "imgLoader", but this cleared both resourcewidth/height)
Tests:
testcase at bugreport
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2009-03-04 22:48:13 UTC (rev 13166)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as 2009-03-04 23:44:53 UTC (rev 13167)
@@ -237,10 +237,6 @@
if (LzAsset.isBitmapAsset(r)
|| LzAsset.isMovieClipAsset(r)
|| LzAsset.isMovieClipLoaderAsset(r)) {
- this.resourcewidth = res.width;
- this.resourceheight = res.height;
- this.totalframes = res.frames.length;
-
if (imgLoader) {
// unload previous http image-resource
this.unload();
@@ -252,6 +248,9 @@
this.resourceCache = null;
}
+ this.resourcewidth = res.width;
+ this.resourceheight = res.height;
+ this.totalframes = res.frames.length;
this.__isinternalresource = true;
this.resource = r;
// instantiate resource at frame 1
More information about the Laszlo-checkins
mailing list