Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tourner(evt:Event) {
- aiguille.rotation += 2;
- }
- stage.addEventListener(KeyboardEvent.KEY_DOWN,stopper);
- function stopper(evt:KeyboardEvent) {
- if (evt.keyCode==32) aiguille.rotation += 2;
- {
- aiguille.removeEventListener(Event.ENTER_FRAME, tourner);
- }
- }
- stage.addEventListener(KeyboardEvent.KEY_DOWN,reprendre);
- function reprendre(evt:KeyboardEvent) {
- if (evt.keyCode==32) aiguille.rotation += 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement