Created
December 22, 2012 09:01
-
-
Save amowu/4358141 to your computer and use it in GitHub Desktop.
Remove self closure function event listener.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj:DisplayObject = new DisplayObject(); | |
obj.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void { | |
obj.removeEventListener(event.type, arguments.callee); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment