Did I talk about Typography?
There's approximately 8 classes left until exam time.
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)?
What do you want to do during the rest of the semester?
More advanced AS 3.0? A simple Flash game? More HTML & CSS?
Switch gears and look at Processing? Talk about javaScript and/or jQuery?
http://www.boxofchocolates.nl/
http://www.carnalfury.com/
*** Talk about net art ***
for loops:
see "Three-expression for loops" (initializer ; loop-test ; counting expression)
///////////drawing with ActionScript3.0:
var i : int;
graphics.lineStyle(1.5, 0x00ff00, 1); ///////////(size, color, alpha/style)
for (i=0; i<500; i=i+5) { //set i to be zero, and add 5 to i as long as it's <500
graphics.moveTo(30,10); /////(x, y)
graphics.lineTo(100,200);
graphics.lineTo(300,10+i);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Pollock
//////////////////////////////////////////////////////
////////more with for loops:
///////////////////////////////////////frame1
var i, frameCounter:int;
frameCounter=0;
///////////////////////////////////////frame2
frameCounter= frameCounter+1;
graphics.clear();
graphics.lineStyle(i, Math.random()*5000000, .25);
for (i=0; i<=30; i=i+1) {
graphics.drawCircle(i*30,i*30,frameCounter/2);
}
///////////////////////////////////////frame3
gotoAndPlay(2);
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) } } |