First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Corky§urprise | Website: http://www.hamloanimations.com
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, CorkySurprise@AOL.com


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
» Author
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
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: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.