Update connections to use instance copies of apiBaseURL. Untested, but allows docs...
authorAndy Allan <andy@gravitystorm.co.uk>
Tue, 24 May 2011 11:44:53 +0000 (12:44 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Tue, 24 May 2011 11:44:53 +0000 (12:44 +0100)
net/systemeD/halcyon/connection/AMFConnection.as
net/systemeD/halcyon/connection/OSMConnection.as

index d015232837eed373a61c2e29343ffc0c3074d0c1..1c1e58b18c8b5e8d39a4ba4517f72648e0a7adf8 100644 (file)
@@ -32,11 +32,11 @@ package net.systemeD.halcyon.connection {
 
                        readConnection=new NetConnection();
                        readConnection.objectEncoding = flash.net.ObjectEncoding.AMF0;
-                       readConnection.connect(Connection.apiBaseURL+"amf/read");
+                       readConnection.connect(apiBaseURL+"amf/read");
                        
                        writeConnection=new NetConnection();
                        writeConnection.objectEncoding = flash.net.ObjectEncoding.AMF0;
-                       writeConnection.connect(Connection.apiBaseURL+"amf/write");
+                       writeConnection.connect(apiBaseURL+"amf/write");
                        
                }
 
index 79774aa419af9330f396e22f97913466719ee38c..6e08f51752255d9b80662aaa3086e7f316df5c05 100644 (file)
@@ -97,7 +97,7 @@ package net.systemeD.halcyon.connection {
                private function loadFile(box:Array):void {
                        bboxes[box]=LOADING;
 
-            var mapRequest:URLRequest = new URLRequest(Connection.apiBaseURL+"/"+box[0]+"_"+box[1]+"_"+box[2]+"_"+box[3]+".osm");
+            var mapRequest:URLRequest = new URLRequest(apiBaseURL+"/"+box[0]+"_"+box[1]+"_"+box[2]+"_"+box[3]+".osm");
                        var mapLoader:ExtendedURLLoader = new ExtendedURLLoader();
                        mapLoader.info['bbox']=box;
                        mapLoader.addEventListener(Event.COMPLETE, markMapLoaded);