 
 import mx.automation.IAutomationObject;
 import mx.core.AdvancedLayoutFeatures;
+import mx.core.DesignLayer;
 import mx.core.IConstraintClient;
 import mx.core.IDeferredInstantiationUIComponent;
 import mx.core.IFlexDisplayObject;

    public function set isPopUp(value:Boolean):void
    {
        _isPopUp = value;
    }

    //----------------------------------

     */
    public function setVisible(value:Boolean, noEvent:Boolean = false):void
    {
        _visible = value;

        if (layer && !layer.computedVisibility)
            value = false; 
        
        if (super.visible == value)
            return;

        super.visible = value;
        
        if (!noEvent)
