ryanSmithART.com

ryansmithart.com/courses/2013/363

Week #10


Talk about Project C

(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
.



FLASH
:

Basic usage of the if conditional AS 3.0 :

- You should have something like this



Review for TEST

if (exp) { statements }

- "conditional" statement
- exp is an expression that returns true or false
- if the expression returns true, the statements in the brackets are performed.

if (Math.random()>.9) { gotoAndPlay(3); }

- "Math" is an "object"
- a collection of functions and variables

- "random" is a function attached to "Math"
- returns a number between 0 and 1

.034754372, .73583728, .937862612 ...
- different number every time

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

Get Adobe Flash player


Download Target.fla

EXAMPLES : peggysirota.com | art.umbc.edu

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

Get Adobe Flash player


Download Random.fla





HOME WORK

Project C :

Rough Draft of Project C due

you might want to study for the TEST