|
Unit 12. Buttons (I) |
|
They are elements that have to be pressed by the user for triggering a serie of actions. It's also usual to see how this type of elements responds when the mouse passes over them, or they are clicked, for example. Then, to obtain the mentioned interactive effects in other Web oriented languages we must create relatively large programs. This is a quite big disadvantage since the use of buttons is a very common practice in the Internet design. Nevertheless, in Flash it doesn't happen so. Its interface is designed in an special way for the buttons creation, which allows us to easily create all these effects. Like to the other symbols of Flash 8, the buttons have their own timeline. It is independent, but only four frames composes timeline, one for each possible state of the button.
Up. The aspect of the button by default, in other words, when the mouse pointer is not placed over it nor pressing it. Over. Aspect of the button when we place the pointer over it. Down. Appearance that we want our button to have while we are pressing it. Active area (Hit). Here we must indicate the entire area in which we want our button to respond. This is very important in the composition of buttons, as we will see further on. It seems that the limitation of frames could imply a limitation in the great hit capacity and utility of these symbols, but it isn't so. The buttons can contain in its turn other symbols, like clips or graphics (also of Bitmap type). The sum of the possibilities of all the symbols equips the buttons with great hit.
|
|
|
|
First of all we’ll create the object that will represent the aspect of our button by designing it with the tools that Flash 8 offers us. We'll select the object and access to the menu Insert → Convert to Symbol, we'll set the behavior Button and we’ll assign a name to our new symbol.
In this way we've already transformed the object so that it behave like a button. Now we’ll complete it internally. |
|
There are also several common shapes of button, such as the beveled button or the pill shape buttons. Since there exist many ways to obtain these effects, next you have an exercise step by step that shows a way to obtain a rectangular button with a bevel. Exercise Beveled Button. |
| |
|
Legal warning: Authorised on-line use only. It is not allowed the use of these courses in companies or private teaching centres.
|