Here's some things I definitely want to go over:
-keyboard input
-for loops & arrays
-Fun Website: http://martinanderle.de/#/portfolio
Do you want to have class November 21 (the day before Thanksgiving)?
A simple Flash game (this week)
More HTML & CSS
Talk about javaScript and/or jQuery
Switch gears and look at Processing (last day)
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) } } |
var groceryList:Array; groceryList=new Array(); groceryList[0]="eggs"; groceryList[1]="bread"; groceryList[2]="milk"; groceryList[3]="cheese"; trace(groceryList); |
var a: Array; var i : int; |
open .fla file |