Search tutorials
1. Lets create a button ame it something like test_score.
2. Now lets add a text box. Then open up the text options pop-up box by going to window/text.
3. Change it to a dynamic text box and give it the instance and name score.
4. Add this to your first frame:
5.Add this code to the button:
If your still having trouble check the sample file
2. Now lets add a text box. Then open up the text options pop-up box by going to window/text.
When your done with a panel it is best to collapse it then to close it cause your probably going to have to use it again.
3. Change it to a dynamic text box and give it the instance and name score.
4. Add this to your first frame:
score = 0;This tells it to set the score to zero when the page loads.
5.Add this code to the button:
on (release) {
_root.score += 1;
}
And that should do it.If your still having trouble check the sample file
| » Level Basic |
|
Added: 2002-09-06 Rating: 4.03 Votes: 108 |
| » Author |
| This will help you alot if your a beginner. |
| » Download |
| Download the files used in this tutorial. |
| Download (35 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!