Extending the Flash/XML Photo Gallery Support

In my previous articles (Creating a Photo Gallery with Flash and XML: Part I and Part II) I showed you how to create a photo gallery using information contained within an XML file. The XML file provided a neat alternative to using a database for such a small application, as we used it to store the filename of the photo, the caption and the category.

One limitation of that application was that it used images that were exactly the same size and shape, but of course things aren't always that simple, so in this tutorial we'll look at how we can extend the photo gallery to work with different sized photos.

Not only that we'll also see how to create a gallery of thumbnail images.

As part of the tutorial, you'll learn more about the MovieClipLoader class (a new feature in Flash MX 2004). You'll also learn some techniques for dynamically creating and removing movie clips.

I've assumed that you've completed the first two tutorials before reading this one. If you haven't, you'll need to be familiar with adding ActionScript to buttons and using XML in Flash so that you can understand the existing code, however all the files you'll need to make this tutorial fly are contained in the code download.

Check also the new Dreamweaver extension Flash Album Generator that will allow to create Flash Galleries quickly and easy!

$2.89
- OR -

Sas Jacobs

Sas JacobsHello. I'm the Principal of Anything Is Possible, an Australian web development business specialising in web applications development and training. I'm interested in using Flash with dynamic content and I've presented at a number of International conferences on topics relating to applications development, XML and scripting components. I have recently released my second print book Beginning XML with DOM and Ajax to match the first one - Foundation XML for Flash. I have a business web site
and a personal web site.

See All Postings From Sas Jacobs >>