title: How to create an exit button in a full screen swf file?
body: <p>I'm currently making my thesis in Flash. Does anyone know how to put a warning before quitting the app? Like when a user clicks the "X" button, a "Are you sure you want to quit? Yes? No?" will pop up? Also, it is on a f</p>
  
  <p>So far, my code for the Exit button is </p>
  
  <pre><code>addEventListener(MouseEvent.CLICK, CloseApp);
  function CloseApp(e:MouseEvent) {
  fscommand("quit");
  }
  </code></pre>
  
  <p>hence, when click, it automatically closes the app. Thank you very much!</p>