Pls help with dynamic photo gallery

Hey everyone,

I really need help making a photo gallery in my website. I want the gallery section to brings up a bunch thumbnails dynamically for users to choose from and when they click on the thumb it will load the actual image.

So far, I can only get the thumbnails to load.

_root.xSpacing = 270;
_root.numOfPics = 3;

pathToImages = “images/image”

for (i=0; i<_root.numOfPics; i++) {
holder_mc = this.createEmptyMovieClip (“emptyClip”+i, i);
holder_mc.loadMovie(pathToImages+ i + “.jpg”);
holder_mc._x = (_root.xSpacing*i)
}

Any ideas?

I thought this might help you

http://www.kirupa.com/developer/mx/photogallery.htm

Thanks for the quick reply. I did check out that tutorial many times but I still can’t figure out how I can click on one of the thumbnail and it load the correspondent real size image (ie. if I click on thumb0.jpg, it will load image0.jpg).

Maybe I’m in way over my head, what I’m trying to accomplish is something similar to http://www.wiretree.com/ronmac/.

http://www.senocular.com/downloads/index.php?start_from=40&archive=&subaction=&id=&kind=2

Try Senoculars Gallery:

http://www.senocular.com/downloads/index.php?start_from=40&archive=&subaction=&id=&kind=2

you are looking for this file: xmlportfoliowithimageandtext.zip 21 Jan 2004

Thanks plonker! for pointing me in the right direction. Hopefully, after going through the tutorial I can get my photo gallery to work. It’s going to be the first time writing/using xml for me in flash.

XML+Flash==Fun

Enjoy, glad to help!