Our Swish tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website.  Home Flash & Swish Swish Tutorials Simple Scoring System
Your Ad Here

Simple Scoring System


Example:

Click on the numbered buttons above to add the score. use reset to clear the score.

Ok lets start by opening swishmax, this system is really simple for adding a score or points system to a games.

Firstly lets type "Score:" make sure this is static text.

Now lets create a dynamic text box and name it points, just type a zero, so that you can line it up at the side of the score text.

Secondly add a button with the number you wish to add to the score on it. example 10

Now add the following code to the button.

on (release) {
points=Points+++10;
}

Change the 10 to whatever points you wish to add 20, 30, and so on.

To add a reset button simply add the following code to a reset button.

on (release) {
Points="0";
}

This simply just tells the dynamic text box called points to display "0" allowing the scoring to start over again.



Author's URL: Craig Lowe
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

Internet & computing Flash is a vector-based moving graphics format created by Macromedia for the publication of animations on the World Wide Web. More Flash & Swish: Most Popular Materials | Fresh Materials | More Swish Tutorials at FlashPerfection.com

Add comments to "Simple Scoring System"

Only registered users can write comment

Reader's comments