PDA

View Full Version : xml image gallery



trowa
December 9th, 2003, 06:18 PM
Hello,

Firstly, I've done a search on this forum and other websites. But haven't found the solution I am looking for.

I am trying to build a flash slideshow that uses XML to call up images and text captions. I've found a good example of what I am looking for on macromedia's website. found here:

http://sdc.shockwave.com/support/fl..._slideshow_xml/

I would like to add the ability to fade between images and have a button that creates a larger jpg version in a popup window for whatever image is being displayed as current in the slideshow.

can someone point me to a nice tutorial or help me start off in the right direction? Would I need 2 XML files for this or can I just use one? I prefer one. Sorry I am quite new to XML, this is my first foray into it. I can build this thing w/o XML, but it seems to be so much easier if I did it with XML.

thanks for any help.

-trowa

lostinbeta
December 9th, 2003, 06:27 PM
Well XML in Flash isn't really something you can learn in a day, so you may want to check out the XML in Flash tutorial at kirupa.com to help you better understand how.

And also, this may be able to help you a bit more...

http://www.umbc.edu/interactive/fla/ (go to "XML Driven Portfolio")

deenhead
December 9th, 2003, 10:40 PM
There's a great example of a xml image gallery (except its not all that you wanted) at macromedia.com (http://www.macromedia.com/support/flash/applications/jpeg_slideshow_xml/index.html)

trowa
December 10th, 2003, 02:51 PM
Hi Deenhead

thanks. I was using that one as a reference. I got the fading to work. but now all I need is some help with adding a button for the popup window. Can flash call up two different XML files? Or can I do it with just one?

The one XML file I have so far calls up the images and caption text. I would like to add the ability to press a button on the swf that allows the user to see an enlarged version of the image in a popup window. I'd like to do all of this with XML, if possible.

any help would be appreciated.

thanks in advance.

-trowa

trowa
December 10th, 2003, 02:54 PM
lostinbeta,

thanks. that did help a bit. do you have any ideas for my question above? I got the fading the way I want it to. I'm just stumped on getting a popup window to show using XML.

thanks for your help.

-trowa

lostinbeta
December 10th, 2003, 04:02 PM
In the XML file give it a full url attribute, something like
<IMAGE FULLURL="urlToLargerImage" />

And then read that attributes using the attributes feature in Flash newImage.fullUrl = xmlObj.targetNode.attributes.FULLURL (FULLURL is case sensitive)

Then have that value be passed to the newly created image in the gallery (assuming you are using a movieclip symbol) in an onRelease handler newImage.onRelease = function(){
getURL(this.fullUrl, "_blank");
} That will open in a new window, but for a pop-up you can use a javascript pop-up code, a few of them can be found at kirupa.com.

I hope these help you move in the right direction :)

m.art3
December 11th, 2003, 04:44 AM
If u go to
http://www.flashcomponents.net
u find a component to create a gallery with a xml file!

rapadura
August 1st, 2008, 09:01 PM
Hi does anyone have a tutorial of a flash image gallery with xml that shows two images at a time? I'm trying to figure this out but all tutorials I see only show one.