PDA

View Full Version : XML Image Gallery: replacing xml to load new image set?



RhythmMethod
February 23rd, 2005, 10:07 PM
Hi Kirupa crew!

First, big thanks for this great site!

Second, I'm struggling a bit on xml and hoping for a hand. Your xml image gallery is a sweet piece of work, and I would like to be able to add the functionality of being able to load different galleries from a menu without loading a new mc with gallery inside it. I managed to botch the file up pretty good on my own, and was wondering if there is a ready answer nearby.

So I'm thinking have but1, but2 and but3, with a seperate xml file for each. What would you recommend for a smooth way to swap the the xml files to the gallery, and load the first image of the new xml file? Also, can it be done with one big ol' xml file while keeping the galleries seperate? It's not necessary, but could be handy, and save some loading.

It would also be interesting to apply the same principle to the resizing script that Scotty has in that big Resizing thread, just a thought.

Many many thanks!
John

scotty
February 24th, 2005, 04:51 AM
Have a look at this thread
http://www.kirupa.com/forum/showthread.php?t=79359
especially post #20;)

scotty(-:

RhythmMethod
February 24th, 2005, 03:38 PM
Hey thanks Scotty! I'll see if I can't work that out for this application. I actually need less than all of it, meaning I need seperate galleries and forward and back buttons only, no thumbs. Hopefully I can slim it all down without killing it. :block:

I really appreciate your help.
John

scotty
February 24th, 2005, 06:47 PM
Here you go=)
multiple_resize.zip (http://www.gertdesign.info/kirupa/multiple_resize.zip)

scotty(-:

RhythmMethod
February 25th, 2005, 07:54 AM
Scotty, you're amazing! I owe you one my friend.:)

scotty
February 25th, 2005, 08:09 AM
You're welcome:thumb: