This document will introduce you to more design possibilities in the construction of Flash Buttons. For more resources on performing specific actions with buttons, refer to Additional Information at the bottom of this document.
In order to get the most out of this TechNote, an understanding of creating basic buttons is required. We recommend doing the "Buttons" Lesson within Flash (Available from the Help menu). More button resources are available in Additional Information at the bottom of this document.
Hit states are important to understand when designing a complex button. Its shape and area represent the active area of the button. Become familiar and comfortable with the Hit state.
The Up, Over and Down states of a button may be left empty. If these states are empty, the Hit state must then be defined (contain content).
When the Up state of the button is empty or 'invisible', the button is represented on the Stage by a blue shape equivalent to the content in the next Keyframe within the button. This blue shape will not be visible in your final movie. Refer to the Example to see how this works.
Refer to the Example to see how this works.
Note: Movie clips cannot be tested in the Flash editor. You will need to do a Control > Test Movie or export it as a .swf file in order to test.
To create this effect, move the Hit state element(s) to a different area of the Stage than elements in the Over state of the button. This will work for simple rollover effects. The active area of the button, will then be located in a different area onstage than the rollover effect. Refer to the Example to see how this works
For more information on basic buttons, refer to the Using Flash manual.
To learn how to assign an action to a Button, do the Buttons lesson inside Flash. Refer to the Using Flash manual for more information on Mouse Events and assigning actions to Buttons. Refer to the ActionScript Reference for more advanced information on what actions can be performed.
To create a simple animated menu, refer to How to create a pop-up menu in Flash (TechNote 14363).
To create a link to an email address, refer to How to create a button that will send e-mail messages (TechNote 14072).
To make a button for clearing fields in a Flash form, refer toHow to create a reset button (TechNote 15541).