nice zoom buttons and a loading message
[potlatch2.git] / net / systemeD / halcyon / connection / XMLConnection.as
index 2d05fb26757976630416b96bc193f7b5b1019796..0fa1c6b54b2f731cc489633643a658f7a8e4f452 100644 (file)
@@ -38,6 +38,7 @@ package net.systemeD.halcyon.connection {
             var mapLoader:URLLoader = new URLLoader();
             mapLoader.addEventListener(Event.COMPLETE, loadedMap);
             mapLoader.load(mapRequest);
+            dispatchEvent(new Event(LOAD_STARTED));
                }
 
         private function parseTags(tagElements:XMLList):Object {
@@ -48,6 +49,8 @@ package net.systemeD.halcyon.connection {
         }
 
         private function loadedMap(event:Event):void {
+            dispatchEvent(new Event(LOAD_COMPLETED));
+
             var map:XML = new XML(URLLoader(event.target).data);
             var id:Number;
             var version:uint;