Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 220
invisible Buttons and the
Hit Keyframe
Your button symbol’s Hit keyframe indicates the area that is “hot,” or clickable, to the
user. Normally, the Hit keyframe contains a shape that is the same size and location
as the shape in your Up keyframe. In most cases, you want the graphics that users
see to be the same area where they click. However, in certain advanced applications,
you may want the Hit keyframe and the Up keyframe to be different. If your Up
keyframe is empty, the resulting button is known as an invisible button.
Users can’t see invisible buttons, but because the Hit keyframe still defines a click-
able area, invisible buttons remain active. So, you can place invisible buttons over
any part of the Stage and use ActionScript to program them to respond to users.
Invisible buttons are useful for creating generic hotspots. For example, placing them
on top of different photos can help you make each photo respond to a mouse click
without having to make each photo a different button symbol.
Duplicating buttons
Now that you’ve created one button, you’ll be able to create others more easily.
You’ll duplicate one button here, change the image in the next section, and then
continue to duplicate buttons and modify images for the remaining restaurants.
1 In the Library panel, right-click/Ctrl-click the gabel loffel button symbol and
select Duplicate. You can also click the options menu at the top-right corner
of the Library panel and select Duplicate.
Adobe FLAsh ProFessIonAL Cs6 CLAssroom In A book
211