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. 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
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|