Search tutorials
Getting Started
Lets start with the easy piece first. The player tries to guess the number, which requires the following steps:
- The computer picks a number
- Get the number from the player
- Evaluate the input
- Inform the player
- Return to step 2 until the number is guessed
Start up Flash and rename layer 1 to "Calculate" Create a new keyframe, and add the following frame actions:
Set Variable: "high" = 1000 Set Variable: "low" = 0 Set Variable: "Num" = Random (high) +1
| » Level Advanced |
|
Added: 1999-12-20 Rating: 5.99 Votes: 498 |
| » Author |
| Peter is a twisted former teacher of English, who now only obeys the grammer of actionscript. He loves writing educational Flash pieces, and is known to enjoy reading actionscript poems by other authors as well. |
| » Download |
| Download the files used in this tutorial. |
| Download (11 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!