 
     /**
      *  @private
-     */
-    private var resizeHandlerAdded:Boolean = false;
-
-    /**
-     *  @private
      *  This flag indicates whether the width of the Application instance
      *  can change or has been explicitly set by the developer.
      *  When the stage is resized we use this flag to know whether the

        systemManager.stage.nativeWindow.addEventListener(
            NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE,
            window_displayStateChangeHandler);
    }

    /**
     *  @private
     */
    private function mouseMoveHandler(event:MouseEvent):void
    {
        stage.nativeWindow.x += event.stageX - prevX;
        stage.nativeWindow.y += event.stageY - prevY;
    }

    /**
     *  @private
     */
    private function mouseUpHandler(event:MouseEvent):void
    {
        removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
        removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    }

    /**

    
    /**
     *  @private
     *  Starts a system resize.
     */
    private function startResize(start:String):void
