Advertisement
netgrind

Untitled

Aug 2nd, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.events.KeyboardEvent;
  2. import flash.ui.Keyboard;
  3.  
  4. var first:Boolean = true;
  5.  
  6. if(first){
  7.     first = false;
  8.     stop();
  9.     stage.addEventListener(KeyboardEvent.KEY_DOWN,function(e:KeyboardEvent){
  10.         if(e.keyCode == Keyboard.RIGHT)gotoAndStop(currentFrame%totalFrames+1);
  11.         if(e.keyCode == Keyboard.LEFT)gotoAndStop(currentFrame%totalFrames-1);
  12.     });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement