Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
build a button
Author: Bassem Bouguerra
Buttons :
There are 2 methods to create a button:
- you can either drag a button component from the components panel
- or create your own button using your own design and that's what we are going to build.
Creating a button using your own design:
- Draw whatever shape you want using the drawing tools.
- Select the shape you drew, click on Modify->Convert to Symbol
- Select the Button option and type the name of your button in the name text field.
- Double click on the button.
- You will see 4 frames:
- Up: is what you see when the button is passive
- Over: is what you see when the mouse is over the button
- Down: is what you see when you click on the button
- Hit: is the area of sensitivity, means when the mouse rolls over that area the pointer will go the over frame, the hit frame won’t be seen.
Click on the Up frame, press F6 and make your changes to the shape or color. Do the same thing for Over, Down and Hit; remember the Hit frame won’t be seen so just copy what you have in Up frame.
- Select the button, open the actions panel and type:
On (release) {
trace(“Yeah, the button is working !!”);
}
If you test the movie, when you release the button a pop-up window will pop out displaying “Yeah, the button is working !! “.
| » Level Basic |
|
|
Added: : 2004-07-02
Rating: 5.84 Votes: 75
Hits: 1314
|
| » Author |
|
Worked with Macromedia Flash since 2001 from Flash 4.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|