title: allow event listener access to variable outside of its function
body: <pre><code>public class Main extends MovieClip {
  
    public function Main():void {
      getOne()
    }
  
      function getOne():void {
        var varOne:Boolean = false;
  
        stage.addEventListener(MouseEvent.CLICK, dunClicked);
      }
  
      function dunClicked(e:Event):void {
        if(!varOne) trace("Nope...");
      }
  }
  </code></pre>
  
  <p>Now... I know if I put varOne within the Class it will be treated as a sort of 'global variable' (please correct me if I'm wrong...) I was wondering if there's another way for the EventListener to see the value of varOne?</p>