Posted By

burakkirkil on 07/29/12


Tagged


Versions (?)

Removing Anonymus Listener


 / Published in: ActionScript 3
 

Removing Anonymus Listener

  1. myButton_btn.addEventListener(MouseEvent.CLICK,
  2. function(e:MouseEvent)
  3. {
  4. trace(e.currentTarget.name+" was just clicked!");
  5. //removing anonymous listener
  6. e.currentTarget.removeEventListener(e.type, arguments.callee);
  7. })

Report this snippet  

You need to login to post a comment.