In This Chapter
Planning and scoping a component
Using filter effects with components
Storing image information as BitmapData
Integrating the Tween class
Scripting XML data with PHP
In the first two chapters of Part IX, you learned how to use many of the User Interface and Data components of Flash 8. Now that you're familiar with common production tasks associated with components, you can start to learn how to create your own custom components. In this chapter, you learn how to build a Gallery component. By the end of this chapter, you will know the steps and procedures required to build a fully functional component.
For this chapter, you learn how to build a Flash movie that can dynamically load a list of JPEG files that the user can browse as a series of thumbnails. When the user clicks one of the thumbnails, a larger version of the image loads into the Flash movie. To see the final project, open your Web browser and go to:
Note |
Make sure you have Flash Player 8 installed to view the completed project. |
At this location, you see the interface shown in Figure 35-1. When you click an image thumbnail, the original JPEG loads into the area below the thumbnail bar. The active selection within the bar is highlighted with a bevel filter. When you click another thumbnail, the previously selected thumbnail transitions to a muted grayscale version.