ryanSmithART.com

ryansmithart.com/courses/2013/363

Week #9



Ask about : Project B -

*Anybody not show their work last week?
*Anybody not give me the required materials (.fla, .swf, etc.)

Talk about Project C

Project C Examples:

Robot | Pet Monster | Telekinetic Helmet | Rocket | Missile Turret | Study Animation | Toad



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:
BrokenRecord.fla | updated version | download


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

Get Adobe Flash player



"Try it once, and not much happens.
Try it again, and fail.
Keep trying, and keep failing.
Start over, and eventually you will succeed.
Then you do it again."

//the code on frame 1:

stop();
var i:int;
i=0;
trace("i is" + i)
//////////code for the button/////
BTN1.addEventListener(MouseEvent.CLICK,test);
function test(evt:Object):void{
if (i==0){
gotoAndStop(2);
}else{
gotoAndStop(10);
}
i=i+1;
trace(i);
if (i==5){
gotoAndStop(3);
}
if (i>=7){
gotoAndPlay("youWin");
}
}

 





HOME WORK

Project C : get started on it

(due the 1st of Nov.)
Work on the code, and finish the coding before you animate your project.
Use Frame Labels, text, basic shapes, buttons, and/or trace functions.
Get your variables and conditional statements to work!!

IF YOUR CODE IS BROKEN, DO NOT DELETE IT!
SAVE IT, OR BETTER YET, COMMENT IT OUT.

Bring in incomplete, broken projects, don't get embarrassed
.