disable caching when using Flash Debug Player
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / MapFeatures.as
index 13428df1b01ee906f465280166f7db1f636f23f5..d9f64e5c99778655d059fd5d252e64fd7a7f7cdb 100644 (file)
@@ -3,13 +3,12 @@ package net.systemeD.potlatch2.mapfeatures {
     import flash.events.EventDispatcher;
     import flash.events.Event;
     import flash.net.URLLoader;
     import flash.events.EventDispatcher;
     import flash.events.Event;
     import flash.net.URLLoader;
-    import flash.net.URLRequest;
 
        import flash.system.Security;
        import flash.net.*;
 
     import net.systemeD.halcyon.connection.*;
 
        import flash.system.Security;
        import flash.net.*;
 
     import net.systemeD.halcyon.connection.*;
-
+       import net.systemeD.halcyon.DebugURLRequest;
 
        public class MapFeatures extends EventDispatcher {
         private static var instance:MapFeatures;
 
        public class MapFeatures extends EventDispatcher {
         private static var instance:MapFeatures;
@@ -29,10 +28,10 @@ package net.systemeD.potlatch2.mapfeatures {
         private var _categories:Array = null;
 
         protected function loadFeatures():void {
         private var _categories:Array = null;
 
         protected function loadFeatures():void {
-            var request:URLRequest = new URLRequest("map_features.xml?"+Math.random());
+            var request:DebugURLRequest = new DebugURLRequest("map_features.xml");
             var loader:URLLoader = new URLLoader();
             loader.addEventListener(Event.COMPLETE, onFeatureLoad);
             var loader:URLLoader = new URLLoader();
             loader.addEventListener(Event.COMPLETE, onFeatureLoad);
-            loader.load(request);
+            loader.load(request.request);
         }
 
         internal function get definition():XML {
         }
 
         internal function get definition():XML {