gavin sim logo
 

Week 1

Week 2

Week 3

Week 4

Week 5

Week 6

Week 7

Week 8

Week 9

Teaching > ActionScript

Week 1 - Exercise


Create a button that when it is pressed a random number is generated between 1-10.

Math.ceil(Math.random()*10);
   

If the number is 7 in a text box on the stage display "You are a winner", if the number is greater than 7 display "that is to big" and if the number is less than 7 display "this is to small";

Test your movie!