|
Unit 12. Buttons (II) |
|
Let's see that this isn't always so trivial. Here are two buttons created in Flash 8. Let's verify what happens when the mouse moves over one and another.
Although they seem identical, the difference happens at the moment in which we locate the mouse on one of the spaces that exist between letter and letter or, in general, all those places that don't belong to the text itself. In the left text the button is activated only when we place the mouse pointer over the letter. This can be uncomfortable and can bring to confusion, since someone that browses through our pages simply would like to make use of the button and not have to aim concretely some letters that perhaps could be very narrow.
This is due to the poor use of the active area. In the right button this problem is solved as we can verify again. To solve this problem follow the next steps:
|
|
Since we've already seen, everything that is possible to do with a graphic can be done with a clip as well, let's focus in the Bitmaps that Flash allows us to import, since they are wide used as form of graphical expression all over the Network. If we consider the already known limitations on the bitmaps, then using of them in the creation of buttons can seem to be uninteresting, but it isn't the case. Basically we can make two things: 1) Including different bitmap in each one of button frames, obtaining an effect similar to the effect obtained with languages like Javascript (always in view of the larger ease of Flash). 2) Taking advantage of the Graphic properties in Flash. For this, first, we would have to import the Bitmap and convert it later into button symbol. Then we would publish it and, after inserting each keyframe, we would convert its content to Graphic symbol. Once we've done this, we will be able to obtain quite good effects by varying the effects of the instances in Flash (Alpha, Red, Brightness). Here is a small sample where we've only used a Bitmap of GIF type. We've converted it into a graphical button by applying an Alpha (Transparency) effect to the Up state. In the Over frame we have left the original GIF so that when passing over the button it seems to be switched on. Finally we have increased the intensity of red in the Pressing frame to make it seem to be incandescent.
|
| |
|
Legal warning: Authorised on-line use only. It is not allowed the use of these courses in companies or private teaching centres.
|