Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Simple Guessing Game with Actionscript
Author: Peter Brouwers
Getting Started
Let’s 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.58 Votes: 472
Hits: 14080
» 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)
Get conversion and unzipping tools
for PC and Mac here!
» Forums
More help? Search our boards for quick answers!
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.