hey all,
I was just wondering if i define an event by mxml like
<mx:Button id="myBtn" click="onClick();") />
and then try and remove it
private function onClick():void{
trace("Click");
myBtn.removeEventListener(MouseEvent.CLICK, onClick);
}
it still keeps calling the function but if i add the event listener through
as
like
myBtn.addEventListener(MouseEvent.CLICK , onClick);
then it removes the call back function.
thanks
cheers
firdosh
