Chapter 35: Building an Image Gallery Component


Overview

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:

  • www.flashsupport.com/f8b/gallery/main.html

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.

image from book
Figure 35-1: The completed project




Macromedia Flash 8 Bible
Macromedia Flash8 Bible
ISBN: 0471746762
EAN: 2147483647
Year: 2006
Pages: 395

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