Chapter 12. Components for Interactivity


Chapter 12. Components for Interactivity

Creating common Flash elements like playback controls (Play and Pause buttons ), text fields, checkboxes, and menus can add up to a lot of grunt work. Since they pretty much look the same in every animation, some kind Flash developers did the grunt work for you and put ready-made versions of these Flash bits and piecescalled components right in the program.

A component is a compiled, prebuilt movie clip that you can drag onto the Stage and customize (Figure 12-1). Flash Professional 8 comes with some three dozen components, and Flash Basic 8 has about half that number.

If you do a lot of work in Flash, you'll appreciate the time that components can save you. But another great thing about components is the consistency they offer. For example, say you're creating three Web sites in Flash for a single corporate client: one site for their employees , one for their customers, and one for their business partners . Your client wants the sites to have a slightly different look and feel based on their intended audiences, but also wants the sites to be similar when it comes to navigation and usability.

If you're ActionScript-savvy, you can create the menus you'll need from scratch. But if you use the prebuilt MenuBar component that comes with Flash, you not only save time, you also ensure that the strip of menu buttons you display at the top of each page of each site looks and behaves predictably. From a design perspective, this consistency can mean the difference between someone being able to get around your site and someone surfing away in frustration.

This chapter shows you how to add Flash's built-in components to your animation and how to customize them. You also see where to find additional components on the Web.

Figure 12-1. Flash Professional 8 comes with over 40 components in three different categories: Data components to transfer data from your Flash animation to a server; Playback components to add playback controls to your animation; and User Interface controls to create interactive buttons, boxes, and lists (similar to HTML form controls). The examples in this chapter focus on the components available in both Flash Basic and Flash Professional, but the techniques apply to all components.


Note: Using components requires a good deal of ActionScript knowledge. But creating your own components is an even more ActionScript- intensive proposition. If you'd like to explore creating your own components, check out both the Components Language Reference you find in Flash Help (see the Appendix), and a good book that covers both ActionScript and object-oriented design. Colin Moock's Essential ActionScript 2.0 (O'Reilly) is one of the best on the market.



Flash 8
Flash Fox and Bono Bear (Chimps) (Chimps Series)
ISBN: 1901737438
EAN: 2147483647
Year: 2006
Pages: 126
Authors: Tessa Moore

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net