First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Corky§urprise | Website:
Next, draw a square, highlight it and convert it to a symbol (F8) or Insert- Symbol. In this tutorial It doesn't matter what its called. Press OK. Now, select your rectangle and give it the following script:
onClipEvent (enterFrame) {
	if (_root.rollingscore<_root.score) {
		_root.rollingscore += 1;
on (press) {
If your new to flash, I'll explain this in the wonderful language we like to call English. If your intermediate / advanced and you think I'm insulting your intelligence, you shouldnt be viewing this tutorial.. Anyway
onClipEvent(enterFrame) {
is like Once upon a time. You need it to start a story, or else it wouldnt work. E.g. Once upon a time the mad man came out with a yellow bananna and took the hamster hostage. Without the Once upon a time, it wouldnt make sense. Depending on your Frame rate, e.g. 12 (standard) it will mean that what you want to happen will happen 12 times every second.
if (_root.rollingscore<_root.score) {
Means if the number rolling score is smaller (remember kids, the crocodile always eats the larger number) (< means smaller than, > means larger than) Umm, lets start again Means if the number called rolling score is smaller than the number score...
the number called rollingscore will increase by 1. The last part says
on (press) {
when you press the button...
The number score will increase by 10 - Easy! That's the tutorial Done. If you have any questions / comments, blah blah blah, you know the address,


Q: What if my button added an extra thousand to the score, It would be there for Months... A: Erm, change _root.score+=1 to _root.score+=10 or something...Depends On your needs Mike
» Level Basic

Added: 2005-08-18
Rating: 5 Votes: 17
(10 being the highest)
» Author
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


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

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.