Dispatch an event when the map sprites etc have been initialized
authorAndy Allan <gravitystorm@gmail.com>
Fri, 26 Nov 2010 14:41:46 +0000 (14:41 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Fri, 26 Nov 2010 14:41:46 +0000 (14:41 +0000)
net/systemeD/halcyon/Map.as
net/systemeD/halcyon/MapEvent.as

index 772b1b5..836c0e1 100644 (file)
@@ -143,6 +143,7 @@ package net.systemeD.halcyon {
                        basey      =lat2latp(startlat)+(mapheight/2)/scalefactor;
                        addDebug("Baselon "+baselon+", basey "+basey);
                        updateCoords(0,0);
+            this.dispatchEvent(new Event(MapEvent.INITIALISED));
                        download();
                        
         }
index cb125f5..3858639 100644 (file)
@@ -10,6 +10,7 @@ package net.systemeD.halcyon {
                public static const SCALE:String = "scale";
                public static const NUDGE_BACKGROUND:String = "nudge_background";
                public static const ERROR:String = "error";
+        public static const INITIALISED:String = "initialized";
 
                public var params:Object;