Hi,
I am having some problems with removing events , here is the code.
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragIt);
rect_mc.addEventListener(MouseEvent.CLICK, clickIt);
function dragIt(eve:MouseEvent):void
{
rect_mc.startDrag(true);
eve.updateAfterEvent();
}
function clickIt(eve:MouseEvent):void
{
trace(eve.target.name + " is clicked");
stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragIt);
}
can you please tell me why the event on stage is not removed, even if i click like thousand times…
thanks is advance…