Topic: multiple galleries with flash - WORKING
hi all
to have a swf that loads multiple galleries you must do this:
1.- make both folders and galleries(in this example gal1, gal2, gal3...), including gallery.xml, viewer.swf and image & thumbnails folders.
2.- you can make a folder called "photos" that contains previous folders. (I did it to this example).
3.- so, in the swf that loads the galleries, paste this code:
function loadGallery(galName){
_root.xmlDataPath = galName + "/gallery.xml";
mc.loadMovie(galName + "/viewer.swf");
}
and to load a gallery paste this in the button (to load gal1):
on (release){
loadGallery("photos/gal1");
}
/////////////////////////////
the code changes the path of the xml, adapting it to each gallery.
Also, you must change each gallery.xml:
thumbPath="photos/gal1/thumbnails/"
imagePath="photos/gal1/images"
-----------------
I hope my english be good ;)
regards