- art382 [interactive_media] sp2013 -

instructor : ryanSmith

Week #12

Capture Keyboard Input
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 .


Wednesday, Apr.17 : Project C is due


Home Work :


change the design & charaters in :
{{ -- :: SPACE SHOOTER :: -- }}}}}}}}}}

Download : spaceshooter.zip
due : Wed. Apri 24th .

Next week : ** Give Back Grades **