Search tutorials
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 wont be seen.
- 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: 6.04 Votes: 76 |
| » Author |
| Worked with Macromedia Flash since 2001 from Flash 4. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


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