MACROMEDIA FLASH MX 2004 | Alejandra Jarabo |
Media Arts & Technologies Division. Santa Barbara City College |
BUTTONS IN FLASH |
Buttons are a 3rd type of Library symbols. They have a direct interactive function. Button's structure as a symbol is different from the other two: They have a limited Timeline, containing 4 labeled "cells". By only allocating different keyframes containing images for each or some of those states, Flash will create the internal scripting that allows you to see the button changing depending the interaction of the user with his/her mouse. Later on we will create the action that it's triggered by the button with a language called ACTION SCRIPTING. This will be the beginning of Interactive authoring. |
|||||||||||
Notice in the screen capture below that I am using a Graphic symbol in the keyframe that corresponds to the "UP stage". This is a good way of saving file size if you want to change the color for each stage without dramatically changing shape. | |||||||||||
|
|||||||||||
|
|||||||||||
|
|||||||||||
When you need to have a text INSIDE the button, it is a good idea to create 2 layers inside the button symbol. If you wanted to have a sound in some of the stages (a short interactive sound, we'll see later in the course) you will also create a layer for it . Be careful to have as less as possible in the HIT area keyframe (just the area defined by a shape). |
|||||||||||
|
|||||||||||