|
Free Open Book
Macromedia Flash 8 Bible |
Why Use Components?Components make it easy for you to rapidly create proof-of concepts or prototypes for larger Rich Internet Application (RIA) frameworks, to share your work with other Flash developers who work in your production team, or to share your innovations with other developers in the Flash community. While this chapter focuses on the components bundled with the release of Flash 8, the way in which these components are used will also help you understand how other components work — from Macromedia or a third-party. Components you download sometimes come in sets, which may include many similar small applications. You may need the Macromedia Extension Manager to install them into Flash 8.
One of the arguments against using components is the file size they add to your productions. Even though this may be the case, there are several reasons to use components apart from the ease of dragging them to your Stage and modifying the parameters.
First of all, usability is an integral part of effective interface design. Components are an extremely effective way of ensuring that your end-user understands how to use certain elements of your Flash movie. A predictable interface does not have to be boring or cliché. Furthermore, because components can be skinned, they can have a unique look from one site to the next. The components shipped with Flash 8, for the most part, are also reliable, given they were built, developed, and tested by professionals. This is not to say that the same level of construction cannot be achieved by thousands of others, but the time and effort spent in complicated coding and testing has already been done for you. And because components are a quick solution to common interface requirements, you will have more time to spend on more complicated and interesting creative tasks instead of repetitive authoring.
Compiled Clips: A Specific Component FormatA component is made up of one or more internal assets. One of the changes introduced with Flash MX 2004's component architecture (and continued in Flash 8), though, is that components can be compiled. This means that when you add a component to the Flash document and open your Library panel, you'll only see one symbol for the component (see Figure 33-1). In Flash MX, the same component may have added many folders and symbols that are used by the component (see Figure 33-2). The symbol type for prepackaged components is called compiled clip. There are a couple of major differences with this component format and architecture:
If you were familiar with components in Flash MX, we highlight other differences between V1 and V2 components throughout this chapter. |
Main Menu |
| 500 Juegos Gratis | 500 Giochi Gratis | 500 Jeux Gratuits | 500 Jogos Gratis | 500 Kostenlose Spiele |