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 dont want it to.
this.addEventListener(MouseEvent.CLICK, firstlistener);
function firstlistener(e:Event)
{
//do stuff
e.stopImidiatePropagation();
this.addEventListener(MouseEvent.CLICK, secondlistener);
}