      */ 
     override public function get visible():Boolean
     {
-        if (!nativeWindow.closed)
-            return _nativeWindow.visible;
+        if (nativeWindow && nativeWindow.closed)
+            return false;
+        if (nativeWindow)
+            return nativeWindow.visible;
         else
-            return false;
-    }
+            return _nativeWindowVisible;
+    }
+    
     /**
      *  @private
      */

                else
                {
                    _nativeWindow.visible = value;
                    dispatchEvent(e);
                }
            }
        }
    }

     */
    private function hideEffectEndHandler(event:Event):void
    {
        if (!_nativeWindow.closed)
            _nativeWindow.visible = false;
        removeEventListener(EffectEvent.EFFECT_END, hideEffectEndHandler);
    }

    /**
