title: closing a loaded SWF file without closing the whole application
body: <p>I'm loading an SWF file into my main app (a flash desktop app), and i want to be able to close it using an exit button without closing the whole app.</p>
  
  <p>i've tried</p>
  
  <pre><code>import flash.system.fscommand;
  
  exitButton.addEventListener(MouseEvent.CLICK, clickHandler);
  function clickHandler(event:MouseEvent):void {
        fscommand("quit");
   }
  </code></pre>
  
  <p>i'm putting this code in the loaded SWF file, instead of closing it alone, it closes the whole window.
  Any idea how can i close the loaded SWF while remaining in my main app?</p>