             startResize(edgeOrCorner);
             event.stopPropagation();
         }
-    }
-
-    /**
-     *  @private
-     */
-    private function closeButton_clickHandler(event:Event):void
-    {
-       stage.nativeWindow.close();
     }
 
     /**

 *    autoExit="true"
 *    backgroundFrameRate="1"
 *    dockIconMenu="<i>null</i>"
 *    maxHeight="10000"
 *    maxWidth="10000"
 *    menu="<i>null</i>"
 *    minHeight="100"
 *    minWidth="100"
 *    showStatusBar="true"
 *    status=""
 *    systemTrayIconMenu="<i>null</i>"

        systemManager.stage.nativeWindow.addEventListener(
           NativeWindowBoundsEvent.RESIZE, window_resizeHandler);

    }

    /**
