 import mx.events.FlexEvent;
 import mx.events.FlexMouseEvent;
 import mx.events.ResizeEvent;
+import mx.managers.SystemManager;
 
 import spark.components.Application;
 import spark.components.View;

     *  @private
     */ 
    private function openViewMenu():void
    {
        if (!currentViewMenu)
        {
            currentViewMenu = ViewMenu(viewMenu.newInstance());
            currentViewMenu.items = activeView.viewMenuItems;
            
            // Size the menu as big as the app
            currentViewMenu.width = getLayoutBoundsWidth();
            currentViewMenu.height = getLayoutBoundsHeight();
            
            // Remember the focus, we'll restore it when the menu closes
            lastFocus = getFocus();
            currentViewMenu.setFocus();
            
            currentViewMenu.addEventListener(MouseEvent.CLICK, viewMenu_clickHandler);

            addEventListener(ResizeEvent.RESIZE, resizeHandler);
        }
        
        
        // Block interaction with the rest of the application
        attachMouseShield();
        currentViewMenu.open(this, false /*modal*/);
