Flash Templates Tutorials - Animated button
Button is a symbol which may display different images in response to different states of the button and cause some specific actions if your viewers interact actively with this button using the mouse. Creating animated buttons - you set various states of the button, by creating keyframes in the timeline which consists of 4 frames.
To make a button interactive in the clip, put an instance of this button on the scene and attribute a set of actions to it. Every frame in the timeline of the button has its special appointment.
To create a button, make sure that nothing is marked on the scene. Select Insert / New Symbol, or press Control + F8 (Windows) or Command + F8 (Macintosh). In Instance Properties enter the name for your new button and select Button in order it behaved as button. Flash will switch to symbols editing mode. The timeline will change.
Now it contains those 4 frames:
* The first frame - Up - contains what is seen when no one touches the button, it is an empty keyframe.
To handle Up phase use drawing tools, or import the ready picture, or paste other symbol instance. You can use movie clip or a picture, but you can not paste a button into another button. Movie clip is used if you want to make a button with animation.
* The second frame - Over - contains the image that will become visible if a mouse appears over the button.
* The third frame - Down - contains what becomes visible when the button is clicked.
* The fourth frame - Hit - indicates only the surface which should respond to mouse actions. What is pictured in this frame will never become visible. It is only setting borders ...
Example: enable Key Press, place the cursor at the appeared field and click key "p" on your keyboard. As a result, the script will look like here:
On (Press, Key: p)
End On - that is, the playback will be continued only if the user clicks on this button with the mouse or "p" key on the keyboard.