Chapter 36. Building an Image Gallery Component
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 CS3. 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.
In 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:
www.flashsupport.com/fb/as2/gallery
Note
Make sure you have Flash Player 8 or higher installed to view the completed project.
At this location, you see the interface shown in Figure 36.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.
Figure 36.1. The completed project
Creating a Plan
Before you ...
Get Adobe® Flash® CS3 Professional Bible now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.