function reportKeyDown(event:KeyboardEvent):void{ trace("Key Pressed: " + String.fromCharCode(event.charCode) + " (character code: " + event.charCode + ")"); } stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); |
//This code will gotoAndPlay on frame 2 when you hit the enter key: stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); function keyDownHandler(event : KeyboardEvent) : void{ if (event.keyCode == Keyboard.ENTER){ gotoAndPlay(2) } } |
Tim Bubb's "super crazy awesome side-scrolling ninja ball Flash game of legend"
Home Work :
change the design & charaters in :
{{ -- :: SPACE SHOOTER :: -- }}}}}}}}}}
Download : spaceshooter.zip
due : Wed. Apri 24th .
change the design & charaters in :
{{ -- :: SPACE SHOOTER :: -- }}}}}}}}}}
Download : spaceshooter.zip
due : Wed. Apri 24th .
Next week : ** Give Back Grades **