]> git.openstreetmap.org Git - potlatch2.git/blobdiff - halcyon_viewer.as
just in case you want to, y'know, drag the map or something
[potlatch2.git] / halcyon_viewer.as
index 74f0aa174dbc45d5ac8825c2daa8cca44ce49c28..da1818bfd42a539527481802dda324409cbe229a 100755 (executable)
@@ -8,7 +8,7 @@ package {
        import flash.events.MouseEvent;
        import flash.display.*;
        import flash.text.TextField;
        import flash.events.MouseEvent;
        import flash.display.*;
        import flash.text.TextField;
-       import bustin.dev.Inspector;
+//     import bustin.dev.Inspector;
 
        public class halcyon_viewer extends Sprite {
 
 
        public class halcyon_viewer extends Sprite {
 
@@ -35,10 +35,10 @@ package {
                        addChild(theMap);
                        Globals.vars.root=theMap;
 
                        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);
-                       Inspector.getInstance().init(stage);
+                       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();
 
                        var z1:Sprite=new Sprite();
                        z1.graphics.beginFill(0x0000FF); z1.graphics.drawRoundRect(0,0,20,20,5); z1.graphics.endFill();