disable caching when using Flash Debug Player
[potlatch2.git] / potlatch2.mxml
index 5866bb0e6c060bce6d92978641503f6a6b6f2cf2..cdfcdb93fda6804c639ebf67e5ac58275710399a 100755 (executable)
                        if (objChanged) { obj.flush(); }
 
                        // load imagery and style XML
-               var request:URLRequest = new URLRequest("imagery.xml?"+Math.random());
+               var request:DebugURLRequest = new DebugURLRequest("imagery.xml");
                var loader:URLLoader = new URLLoader();
                loader.addEventListener(Event.COMPLETE, onImageryLoad);
-               loader.load(request);
+               loader.load(request.request);
 
-                       var request2:URLRequest = new URLRequest("stylesheets.xml?"+Math.random());
+                       var request2:DebugURLRequest = new DebugURLRequest("stylesheets.xml");
                        var loader2:URLLoader = new URLLoader();
                loader2.addEventListener(Event.COMPLETE, onStylesheetsLoad);
-               loader2.load(request2);
+               loader2.load(request2.request);
 
                        // map backdrop object
             var w:uint = map_area.width;