Dispatch a load complete event even on error, so that loading... labels are handled...
authorAndy Allan <andy@gravitystorm.co.uk>
Tue, 29 Mar 2011 15:20:16 +0000 (16:20 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Tue, 29 Mar 2011 15:20:16 +0000 (16:20 +0100)
net/systemeD/halcyon/connection/XMLConnection.as

index c7baa4d..ef94394 100644 (file)
@@ -54,6 +54,7 @@ package net.systemeD.halcyon.connection {
 
         private function errorOnMapLoad(event:Event):void {
                        dispatchEvent(new MapEvent(MapEvent.ERROR, { message: "Couldn't load the map" } ));
+                       dispatchEvent(new Event(LOAD_COMPLETED));
         }
         private function mapLoadStatus(event:HTTPStatusEvent):void {
             trace("loading map status = "+event.status);