ryanSmithART.com/courses/2015/382





week#9


talk about "PROJECT B"
talk more about Variables

Project B Examples:
Robot | Pet Monster | Telekinetic Helmet | Rocket | Missile Turret | Study Animation | Toad

WEDNESDAY - March 25th:
Have some code finished, with some variables




FLASH

Basic usage of the if conditional AS 3.0 :

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

Get Adobe Flash player


Download .fla file and/or look at code


Look at:

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

Get Adobe Flash player



download GUN_edit.fla
view code
view finished project



Let's talk about Miles' Project C:

Download (CS5) .fla file

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

Get Adobe Flash player



Edited Project | download : Variables3_edit.fla



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

Get Adobe Flash player



dowload : 3modes.fla




In Class :


// declare our variable on frame #1:

var redStuff:int;
redStuff=0; //set it to be zero on frame #1`
trace("redStuff is =" + redStuff);

//HOME (on different frame)
red_BTN.addEventListener(MouseEvent.CLICK, red_Click);
function red_Click(e:Object):void{

redStuff++ // this adds 1 to redStuff,
//same as redStuff=redStuff+1
trace("redStuff is =" + redStuff);

if(redStuff==1){
gotoAndPlay("mode1");
}
if(redStuff==2){
gotoAndPlay("mode2");
}
if(redStuff==3){
gotoAndPlay("mode3");
}
if(redStuff>=4){
redStuff=1;
gotoAndPlay("mode1");
trace("redStuff is =" + redStuff);
}

}



HOME WORK-

WEDNESDAY - March 25th:
Have some code finished, with some variables


week #10 (next week)

maybe you want to have some kind of rough draft

Week #11
"Project B" is due

critiques : Mon. April 6th