|
||||||
|
||||||
Flash Tutorial - Creating Simple Buttons
Free
Flash Tutorial
Step Seven: Actions
You now have a new button which you will need to add actions to so that it does something. See previous tutorial for details of how to do this: Creating Links within a Flash Movie
The hit state
The hit area is normally the same as the rectangle. You do not need to create this unless the hit area is different to the original rectangle you created on frame one.
Note: If your button does not have a solid background
(in this case a rectangle) but only text, you will have to create a rectangle
(or other solid shape), in the hit area frame. Otherwise when the mouse pointer
goes over the gaps between the letters, the button will go back to frame one:
The over state.
Very slowly move the mouse over button 1 below and you will see the problem.
My
Example: Download the Flash
File: Beg 005d
Move the mouse slowly over the Buttons to see the difference.
Button 1 is not stable and moves between states with small movements of the mouse.
Button 2 is stable. Button 2 has a rectangle in the 'Hit' frame. This is not visible in the movie, but controls the 'Up', 'Over' and 'Down' states.
If you are having difficulty understanding this, download the movie and look inside the symbol at the Hit Frame. To look inside the symbol double click it on stage.
Have fun with your buttons, make them wild and wonderful!
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
85420 visitors to this page since Jan 04 |
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|