Author: max
Date: 2007-08-10 09:24:12 -0700 (Fri, 10 Aug 2007)
New Revision: 5999

Modified:
   openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzLoadQueue.as
Log:
Change 20070810-maxcarlson-1 by [EMAIL PROTECTED] on 2007-08-10 09:03:50 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Fix SOLO media loading to be consistent with data in wafflecone

New Features:

Bugs Fixed: LPP-4462 - When running a SOLO SWF in an HTML file located in a 
different directory than the SWF, data requests are made relative to SWF, not 
HTML file

Technical Reviewer: hminsky
QA Reviewer: promanik
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:  This change won't affect any of the default wrappers, because all the 
generated wrappers load the main SWF from the same path as the HTML.


Tests: See LPP-4462.  Change loadtest.lzx to use consistent URLS for the media 
and data loads

    <handler name="oninit">
        img.setSource("img.jpg");
        dsTestData.setSrc("testdata.xml");
        dsTestData.doRequest();
    </handler>

recompile the SOLO file 
(http://localhost:8080/trunk/my-apps/kathrynloadtest/loadtest/loadtest.lzx?lzproxied=false)
 then run the html wrapper 
(http://localhost:8080/trunk/my-apps/kathrynloadtest/loadtest.html).  Notice 
that the media and data load from a consistent path.  Running in the dev 
console with proxied on and off works as well.



Modified: 
openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzLoadQueue.as
===================================================================
--- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzLoadQueue.as    
2007-08-10 16:04:59 UTC (rev 5998)
+++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzLoadQueue.as    
2007-08-10 16:24:12 UTC (rev 5999)
@@ -326,7 +326,7 @@
 LzLoadQueue.loadMovieProxiedOrDirect = function (loadobj) {
     var reqstr;
     if ( !loadobj.proxied ) {
-        reqstr = loadobj.reqobj.url;
+        reqstr = LzBrowser.toAbsoluteURL(loadobj.reqobj.url, false);
     } else {
 
         delete loadobj.proxied;


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to