Macromedia Flash 8 for Windows & Macintosh
12. Building Buttons for Interactivity
After you master the drawing and animating tools in Flash 8, you can create movies that play from beginning to end. But Flash is more than a tool for making animated movies. You can use it to create interactive environments that transform viewers into users. To move your Flash movie into the realm of interactive experience, you need to create interface elements that allow users to control and interact with your application. The most common interface element is a button. Buttons have two levels of interactivity. First, a button can respond to a user with visual feedbackfor example, changing color when the pointer enters the button area. Second, the button can carry out tasksfor example, switching to a new scene when the user clicks the button. Flash comes with a number of predefined interface elements, including button symbols and button components. For these elements, built-in coding takes care of the first level of button interactivity, responding to mouse movements with visual feedback. For example, when a user positions the pointer over a button symbol or component's hot area, built-in coding tells Flash to change the pointer to the hand cursor and alter the look of the button. In this chapter, you learn to set up the first level of interactivity by working with button symbols and button components. You also learn to set up a movie clip symbol that can act as a visually responsive button. To achieve the second level of interactivity, you attach scripts to individual button instances to make buttons respond in new ways and carry out tasks. You'll learn some simple ways to do that in Chapter 13.
|
Категории