 import spark.components.View;
 import spark.components.ViewMenu;
 import spark.components.ViewMenuItem;
+import spark.events.PopUpEvent;
 import spark.managers.IPersistenceManager;
 import spark.managers.PersistenceManager;
-import spark.events.PopUpEvent;
 
 [Exclude(name="controlBarContent", kind="property")]
 [Exclude(name="controlBarGroup", kind="property")]

    private function closeViewMenu():void
    {
        if (currentViewMenu)
            currentViewMenu.close();
    }
    
    /**

        currentViewMenu.invalidateSkinState();
    }
    
    /**
     *  @private
     *  Attaches a mouseShield to prevent interaction with the rest of the 
     *  application while the menu is open
     */ 
    mx_internal function attachMouseShield():void
    {
        if (skin)
        {
            mouseShield = new Sprite();
            
            var g:Graphics = mouseShield.graphics;
            g.beginFill(0,0);
            g.drawRect(0,0,getLayoutBoundsWidth(), getLayoutBoundsHeight());
            g.endFill();
            
            skin.addChild(mouseShield);
        }
    }
    
    /**
     *  @private
     *  Removes the mouseShield
     */ 
    mx_internal function removeMouseShield():void
    {
        if (mouseShield && skin)
        {
            skin.removeChild(mouseShield);
            mouseShield = null;
        }
    }
    
    //--------------------------------------------------------------------------
    //
    //  Overridden methods: UIComponent
