 
 import flash.display.Bitmap;
 import flash.display.BitmapData;
+import flash.display.DisplayObject;
 import flash.display.Shape;
 import flash.display.SimpleButton;
 import flash.display.Sprite;

        }

        // listen for mouse and key events
        _field.addEventListener(MouseEvent.MOUSE_DOWN, sendMouseMessage);
        _field.addEventListener(MouseEvent.MOUSE_UP, sendMouseMessage);
        addEventListener(KeyboardEvent.KEY_DOWN, sendKeyMessage);
        addEventListener(KeyboardEvent.KEY_UP, sendKeyMessage);


        stage.focus = this;
        addEventListener(FocusEvent.FOCUS_OUT, function (event :FocusEvent) :void {
            addClientWindow(int.MAX_VALUE - 1, "Click to restore input focus.");

            // attempt to reacquire
            stage.focus = mousePad.parent;
        });
        addEventListener(FocusEvent.FOCUS_IN, function (event :FocusEvent) :void {
            removeWindow(int.MAX_VALUE - 1, false);
