Use a separate error handler for trace failures, now that the map load error handler...
authorAndy Allan <andy@gravitystorm.co.uk>
Sat, 24 Mar 2012 18:04:13 +0000 (18:04 +0000)
committerAndy Allan <andy@gravitystorm.co.uk>
Sat, 24 Mar 2012 18:04:13 +0000 (18:04 +0000)
net/systemeD/halcyon/connection/XMLConnection.as

index fc046c2..52c5bc7 100644 (file)
@@ -481,8 +481,13 @@ package net.systemeD.halcyon.connection {
                                function(e:Event):void { 
                        dispatchEvent(new Event(LOAD_COMPLETED));
                                        callback(e);
-                               }, errorOnMapLoad, mapLoadStatus); // needs error handlers
+                               }, errorOnTraceLoad, mapLoadStatus); // needs error handlers
             dispatchEvent(new Event(LOAD_STARTED)); //specifc to map or reusable?
         }
+
+        private function errorOnTraceLoad(event:Event):void {
+            trace("Trace load error");
+            dispatchEvent(new Event(LOAD_COMPLETED));
+        }
        }
 }