title: can't remove stagewebview
body: <p><strong>[UPDATE]</strong> I Finally fixed it, by putting the <code>StageWebView</code> instance into a <code>MovieClip</code> instance like this:</p>
  
  <pre><code>    package eu.lafactoria.PF
      {
          import flash.display.Bitmap;
          import flash.display.MovieClip;
          import flash.geom.Rectangle;
          import flash.media.StageWebView;
  
      public class PFWebView extends MovieClip
      {
          //==========================================================//
          //==    VARIABLES
          //==========================================================//
          private var mWebView:StageWebView;
          [Embed(source='/assets/bt_enrera.png')]     //TODO: Posar l'imatge bona
          private static var mCloseButtonImage:Class;
  
          private var mCloseButton:Bitmap;
  
  
          //==========================================================//
          //==    CONSTRUCTOR
          //==========================================================//
          public function PFWebView(){
              mCloseButton = new mCloseButtonImage(); 
          }
  
          //==========================================================//
          //==    SHOW
          //==========================================================//
          public function show(url:String, margin:int = 0):void{
  
              //FIXME: Arreglar boto de tancar
  
              mWebView            = new StageWebView(); 
              mWebView.stage      = this.stage; 
  
              mWebView.viewPort   = new Rectangle( margin, margin, stage.stageWidth - margin*2, stage.stageHeight - margin*2);
              mWebView.loadURL(url);
  
              this.addChild(mCloseButton);
              mCloseButton.x = stage.stageWidth - margin*2;
              mCloseButton.y = margin           - mCloseButton.height + 5;
          }
  
          //==========================================================//
          //==    HIDE
          //==========================================================//
          public function hide():void{
              if(mWebView != null)
                  mWebView.stage = null;
              else
                  trace("[PFWebView] Trying to hide a webiew not shown  yet");
  
              this.removeChild(mCloseButton);
              //this.parent.removeChild(this);
          }
      }
  }
  </code></pre>
  
  <p><strong>[ORIGINAL QUESTION]</strong>
  I have a Flex application where I add a <code>StageWebView</code> instance like this</p>
  
  <pre><code>        mCredits = new StageWebView();
          mCredits.loadURL("http://www.google.es");
  
          mCredits.stage    = mMainSprite.stage;
          mCredits.viewPort = new Rectangle( margin, margin, mMainSprite.stage.stageWidth - margin*2, mMainSprite.stage.stageHeight - margin-2);
  </code></pre>
  
  <p>But when I want to remove it so the app is visible again, it doesn't work,
  I to it this way:</p>
  
  <pre><code>        mCredits.viewPort = null;
          mCredits.stage    = null;
          mCredits.dispose();
          mCredits          = null;
  </code></pre>
  
  <p>Any of you know why doesn't it work?
  Thanks!</p>