Author: max
Date: 2007-08-10 08:51:09 -0700 (Fri, 10 Aug 2007)
New Revision: 5996

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzLoadQueue.as
Log:
Change 20070809-maxcarlson-5 by [EMAIL PROTECTED] on 2007-08-09 20:53:23 PDT
    in /Users/maxcarlson/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix SOLO media loading to be consistent with data

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/trunk/WEB-INF/lps/lfc/services/LzLoadQueue.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzLoadQueue.as    2007-08-10 
14:11:49 UTC (rev 5995)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzLoadQueue.as    2007-08-10 
15:51:09 UTC (rev 5996)
@@ -323,7 +323,7 @@
 LzLoadQueue.loadMovieProxiedOrDirect = function (loadobj) {
     var reqstr;
     if ( !loadobj.proxied ) {
-        reqstr = loadobj.reqobj.url;
+        reqstr = _root.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