MapCSS in progress. Vast amounts still to do, but the meat of it is here. POIs are...
[potlatch2.git] / halcyon_viewer.as
index df1a13a..74f0aa1 100755 (executable)
@@ -8,6 +8,7 @@ package {
        import flash.events.MouseEvent;
        import flash.display.*;
        import flash.text.TextField;
+       import bustin.dev.Inspector;
 
        public class halcyon_viewer extends Sprite {
 
@@ -27,16 +28,17 @@ package {
                        t.multiline=true;
                        addChild(t);
                        Globals.vars.debug=t;
-                       t.visible = false;
+                       t.visible = true;
 
                        theMap = new Map(this.loaderInfo.parameters);
             theMap.updateSize(stage.stageWidth, stage.stageHeight);
                        addChild(theMap);
                        Globals.vars.root=theMap;
 
-                       stage.addEventListener(MouseEvent.MOUSE_UP, theMap.mouseUpHandler);
-                       stage.addEventListener(MouseEvent.MOUSE_MOVE, theMap.mouseMoveHandler);
-                       stage.addEventListener(MouseEvent.MOUSE_DOWN, theMap.mouseDownHandler);
+//                     stage.addEventListener(MouseEvent.MOUSE_UP, theMap.mouseUpHandler);
+//                     stage.addEventListener(MouseEvent.MOUSE_MOVE, theMap.mouseMoveHandler);
+//                     stage.addEventListener(MouseEvent.MOUSE_DOWN, theMap.mouseDownHandler);
+                       Inspector.getInstance().init(stage);
 
                        var z1:Sprite=new Sprite();
                        z1.graphics.beginFill(0x0000FF); z1.graphics.drawRoundRect(0,0,20,20,5); z1.graphics.endFill();