Creating Interactive Buttons with Flash
About 4 min read
| One major application of Macromedia Flash is to create interactive buttons that have such effects as roll-over and mouse-click animations. The button can change color, change shape, or move when the mouse rolls over it. Pop-up text or a menu can also be displayed. Note that these effects can also be done with Java and JavaScript. For example, Microsoft FrontPage includes Java buttons that have roll-over and click effects. Most button effects seen on the Web are created in JavaScript, but Flash seems a more effective way of performing the task. Questions you may have include:
This lesson will answer those questions. There is a mini-quiz at the end of the lesson. Basic StepsThe procedure for creating an interactive button in Flash consists of:
1Create button states 2Define size of graphic 3Publish the button 4Repeat for more buttons 1. Create button statesStart with a blank stage. To facilitate drawing, you can make the button larger now and then scale the stage and button later.
2. Define size of graphicYou want to define the size of the stage or graphic area to be just larger than the button area you will be using. You can adjust the stage size again later to scale the buttons to a new size.
3. Publish the button
Demonstration of a simple Flash button. 4. Repeat for more buttonsYou will usually want to have several, similar buttons on a page.
In conclusionYou can easily create interactive buttons in Flash by creating the button state, defining the size of the graphic, and publishing the. Good health enhances your Web development capabilities | Search |
Mini-quiz to check your understanding(Note: Your browser must be able to use JavaScript for this quiz to function properly.) 1. Why would you make a button larger than you need it? Self-check: review the lesson above to confirm your answers. a. You can only make it actual size b. To amuse other people c. To facilitate initial drawing 2. What behavior do you use when you insert a new symbol? a. Animation b. Button c. Flash 3. How do you drag a button to the stage? a. Choose Drag Button b. Choose Window > Library c. Choose Library If you got all three correct, you are on your way to becoming a champion in Flash development. If you had problems, you had better look over the material again. |
What do you think?Feel free to establish a link from your web site to pages in this site. Students and researchersThe URL of this page is www.school-for-champions.com/flash/buttons.htm. Please include it as a reference in your report, document, or thesis. Also, tell a friend about this material. Where can you go from here?
|
SearchEnter one or more keywords to search the School for Champions site and find related lessons: |
