Prev | Current Page 111 | Next

LordAlex Leon, Greg Goralski

"Foundation Flex for Designers"

friendsofed.com. Select
File ?¤ Import ?¤ Existing Projects into Workspace. In the resulting dialog box, click the
radio button Select the Archive File and browse to select PhotoGallery-Complete.zip.
Click Finish. This will bring the entire project, complete with assets, MXML, and styling,
into Flex Builder.
153
FLEX PHOTO GALLERY
Chapter 8
Figure 8-1. Our final picture gallery
The images that we??™re using for this example are from a wonderful Toronto-based photographer
named Maclin Williams.
Starting off
Let??™s begin by examining the files provided at the book??™s website for this chapter. The assets folder is critical
for this example because it contains both the images as well as the XML file that helps us load them.
In the folder called assets you will find a folder called pictures that holds 18 JPEG images. As Figure 8-2
shows, they are named 1.jpg through 18.jpg and are the images that populate our gallery.
The second important file in the assets folder is pictures.xml (Figure 8-3).
This simple XML file lists the names and location of each of the pictures that we want to use. It is possible
to have this information in the MXML file, but by using an external XML we are allowing the
images to be updated without opening the original Flex application. A photographer, for example, can
easily open an XML file and change which images she would like displayed. A photographer would be
less comfortable opening the entire Flex application to make such a change.


Pages:
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
sklep sportowy nike bosten.pl eko mama buchsbaum tworzenie stron internetowych skarżysko kamienna