title: Is it possible to remove an eventListener temporarily (i.e. until a function has been executed)
body: <p>I am doing actionscript 3 at the moment and was wondering if it was possible to remove and eventListner temporarily. I know of removeEventListener, however, that removes the eventListener completely and i cannot click the button again.</p>
  
  <p>If you want some more details, here the exact problem. I have function that when a button is pressed, an object appears. In  the function which makes this object there is an eventListener which leads to a function which allows the user to press that object. When you press that object it disappear and the button will animate. However, since the original eventListener still exists, you can press the object while in motion and create a new object. So to the point: What i want to do is disable the eventListener while the button is moving, and reactivate it when it stops.</p>