[Laszlo-checkins] r13387 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf

bargull@openlaszlo.org bargull at openlaszlo.org
Sat Mar 21 03:09:48 PDT 2009


Author: bargull
Date: 2009-03-21 03:09:44 -0700 (Sat, 21 Mar 2009)
New Revision: 13387

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as
Log:
Change 20090320-bargull-sW4 by bargull at dell--p4--2-53 on 2009-03-20 11:23:09
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: resource-name not updated 

New Features:

Bugs Fixed: LPP-7943 (SWF8: wrong resource name when replacing http-resource with built-in resource)

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
LzSprite#resource wasn't updated after switching from http-resource to built-in resource.
    

Tests:
testcase at bugreport



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as	2009-03-21 08:00:08 UTC (rev 13386)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as	2009-03-21 10:09:44 UTC (rev 13387)
@@ -31,7 +31,7 @@
         //the view doesn't have the empty resource. We need to try and replace it
         v.makeContainerResource();
     }
-    
+
     v.createLoader(src, cache, headers, filetype);
 }
 
@@ -40,7 +40,7 @@
   */
 LzMakeLoadSprite.createLoader = function (src, cache, headers, filetype) {
     this.loader = new LzMediaLoader(this, {});
-    
+
     this.updateDel = new LzDelegate(this, "updateAfterLoad", this.loader, "onloaddone");
     this.errorDel = new LzDelegate(this, "__LZsendError", this.loader, "onerror");
     this.timeoutDel = new LzDelegate(this, "__LZsendTimeout", this.loader, "ontimeout");
@@ -63,7 +63,7 @@
     if (this.loader.mc.loading == true) {
         LzLoadQueue.unloadRequest(this.loader.mc);
     }
-    
+
     if (src == '' || src == ' ' || src == null) {
         if ($debug) Debug.error('setSource called with an empty url');
         return;
@@ -103,6 +103,7 @@
     } else if (nresc.indexOf('http:') == 0 || nresc.indexOf('https:') == 0) {
         this.setSource(nresc);
     } else {
+        this.resource = nresc;
         this.loader.attachLoadMovie(nresc);
         if (this.queuedplayaction == null) {
             this.queuePlayAction("checkPlayStatus");



More information about the Laszlo-checkins mailing list