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 |
EXAMPLES : peggysirota.com | art.umbc.edu
Download Random.fla