Crate an anonymous event listener and remove immediately on first event


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. this.addEventListener(Event.ENTER_FRAME, function(event:Event):void{
  2. removeEventListener(Event.ENTER_FRAME, arguments.callee);
  3. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.