Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. function tourner(evt:Event) {
  3.  
  4. aiguille.rotation += 2;
  5.  
  6. }
  7.  
  8. stage.addEventListener(KeyboardEvent.KEY_DOWN,stopper);
  9.  
  10. function stopper(evt:KeyboardEvent) {
  11. if (evt.keyCode==32) aiguille.rotation += 2;
  12. {
  13. aiguille.removeEventListener(Event.ENTER_FRAME, tourner);
  14. }
  15.  
  16. }
  17.  
  18. stage.addEventListener(KeyboardEvent.KEY_DOWN,reprendre);
  19.  
  20. function reprendre(evt:KeyboardEvent) {
  21. if (evt.keyCode==32) aiguille.rotation += 2;
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement