art382 (interactive media)

instructor: ryanSmith
home | syllabus | contact | links | student work

Week 12

TEST (Wednesday)
any questions?

MONDAY : ** Give Back Grades **

Look at Project C
Rough draft is due : code should be finished, everything should be working

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?


HTML Comment Box is loading comments...


fun stuff:
Jared Tarbell: http://www.levitated.net/
http://www.levitated.net/bones/blueBoxes/index.html

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);


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)
}
}


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

Get Adobe Flash player


source: developphp.com

Tim Bubb's "super crazy awesome side-scrolling ninja ball Flash game of legend"


Homework:

Finish Project C