First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: ::::: Daafy ::::: | Website: http://

We need to create a button. Make a simple square, select it and press F8 to make it a library object. Choose button and name it "Rub Button" for example and press ok. Select your button and press F8 again to insert your button in a Movie Clip (MC) now. Name it "Rub MC" for ex, choose Movie Clip and press ok. Double-click on your MC "Rub MC" and fill the occur name like "Rub". The occur of a MC is the name targeted by any action with script, it's totally different than the name of the object in the library, this last one doesn't matter as contrary as the occur name !
Now, go into your "Rub MC" (right-click ---> modify in place), name the layer you have "Button" and make a new one at top called "Label". Choose the text field tool (press "abc" button) and type "?" in (It's just to be sure text is visible; ne same color). Adjust it according to your button size, right click on it -----> Properties.
Name the var of your text field "Label", disable first option (smthg like "keep border & bgd"), enable options like "disable text edition" & "disable text selection" (allowing to don't have text cursor on roll over text field), enable option like "include font", press ok and finally, customize your font, color and size text. Now return back on your main scene.

You should obtain this :

Note : I've set to my file a 150*350 size and 24 f/s (ctrl + m).

» Level Intermediate

Added: 2001-01-08
Rating: 7.99 Votes: 1292
(10 being the highest)
» Author
Daafy works with Flash since 2 years but began to script (never scripted before) since few months with Flash 4. Like you, he began by downloading sources with some white nights, coffee & other...
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • 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: 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.