Project CDue : Monday,
April 21st
QUIZ : Wed. April 23rd
**
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) } } |
** Talk about "Projector" files **
Ryan's "Build Your Own Brakhage"
Check out: QWERTY.fla
"Fun Game"
- Example #1
- Example #2
- Example #3
-
Example #4
Play with sound on
Homework:
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: Wed. April 30th
**NEXT WEEK**
There's 168 hours in 1 week:
Spend 1 of those hours outside.
Turn off the computer and the TV. Don't touch your phone.
And, see if you can spend 1 continuous hour without an electronic device.
The fresh air, and lack of electronics, will recharge YOUR batteries,
and leave you feeling refreshed.
It doesn't matter if you sit, walk, stare at the trees, or just close your eyes…
Take some time for yourself this week.