title: Disable mouse event (click) whilst actions are performed
body: <p>I'm currently design an application that when a button is pressed it expands to display further information. A major issue I am faced with is that if the button is pressed whilst contracting so that it expands again, the co-ordinates are saved from when it was clicked, meaning it will never return to its original state. </p>
  
  <p>I either need a way of disabling the mouse click on the button whilst the TweenMax is doing its job in contracting the button, or by extracting the coordinates from an array. </p>
  
  <p>I've managed to get the array of coordinates from my menu class into the main class, but can't work out the best way in order to stop the problem from occurring.</p>
  
  <p>--</p>
  
  <pre><code>expand = false;
  (run menu function)
  item.addEventListener(MouseEvent.CLICK, boxExCo);
  
  private function boxExCo(e:MouseEvent):void
  {
      if (!expand)
      {
          selectedBox = e.target as Box;
          boxX = selectedBox.x;
          boxY = selectedBox.y;
          expand = true;
          TweenMax.to.... (expand)
      }
      else
      {
          expand = false;
          TweenMax.to... (contract to coordinates)
      }
  }
  </code></pre>