ryanSmithART.com/courses/2015/382





week#11


Quiz : 2:00pm, Wednesday, April 8


FLASH

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player


download claw game

** Capturing keyboard input **

function reportKeyDown(event:KeyboardEvent):void{
trace("Key Pressed: " + String.fromCharCode(event.charCode) + " (character code: " + event.charCode + ")");
}
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);


stop(); //on frame #1

//This code will gotoAndStop 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){
gotoAndStop(2)
}
}


"Fun Game"
- Example #1
- Example #2
- Example #3
- Example #4

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player



Play with sound on




DOWNLOAD: "space_game.zip" (1.1 MB)




HOME WORK

DOWNLOAD: "space_game.zip"
1) Come up with a new idea
2) Change the overall design (the background & all the Movie Clip symbols)
3) Change the sound effects
4) Upload it to a server (w/ the new .mp3 files)
5) Add a link to your 382, class webpage

Finished game due:
April 22
** in 2 WEEKS **