OwlShield

FlashDersleriniz

Aug 30th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. onClipEvent (load) {
  2.     hiz = 5;   
  3. }
  4. onClipEvent (enterFrame) {
  5.    
  6.     if (Key.isDown(Key.LEFT)) {
  7.         this._x -= hiz;
  8.         this.gotoAndStop(2);
  9.     }
  10.     if (Key.isDown(Key.RIGHT)) {
  11.         this._x += hiz;
  12.         this.gotoAndStop(3);
  13.     }
  14.    
  15. }
  16. onClipEvent (keyUp) {
  17.     this.gotoAndStop(1);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment