title: as3 stop event propagation
body: <p>I'm having trouble getting events to stop propagating in as3 when I'm adding a new event listener in an event listener.  My second event listener is being called when I don't want it to.</p>
  
  <pre><code>this.addEventListener(MouseEvent.CLICK, firstlistener);
  
  function firstlistener(e:Event)
  {
      //do stuff
      e.stopImmediatePropagation();
      this.addEventListener(MouseEvent.CLICK, secondlistener);
  }
  </code></pre>