Buttons I
Steps:
1. Create any graphic or movie clips symbols that you might want to use as the building blocks for your buttons.
2. Create a new button symbol.
3. Insert a symbol from the library (graphic or movie clip) or draw a shape on the stage while in the up frame.
4. Click on the over frame and choose Insert/Keyframe
5. Go back to the stage and make any changes to your symbol or shape. This is the change that will happen on rollover. You may use movie clips here to have an animated rollover effect.
6. Go back to the timeline and click on the down frame and choose Insert/Keyframe
7. Go to the stage and make any changes so you have the image you what to appear while users are holding down their mouse button.
8. Go to the timeline, click on the hit frame and choose Insert/Keyframe.
9. Delete everything on the stage and use a drawing tool to draw a shape that cover the active area of your button. Delete any lines on the shape to ensure the button will operate smoothly.
Assigning behavior to a button
1. Drag an instance of your button onto the stage.
2. Select the instance
3. Go to Windows/Development Panels/Behaviors to open the behavior panel if it is not already visible.
4. Select a behavior by Clicking the “+” and selected from the menus..
Our first basic actionscript:
Go to webpage:
allows you to link to an html page in your web space, or to an external website. You can use relative links for your local files and absolute links for external sites.
*choosing _blank opens the web page in a new browser window, leaving your Flash movie behind it. We will learn how to insert some javascript in our html pages so we can pop up small windows with pictures or html that we want to keep separate from our Flash movies.