# Xml image gallery

**URL:** <https://forum.kirupa.com/t/xml-image-gallery/96477>\
**Category:** Uncategorized\
**Created:** [December 9, 2003, 11:18pm UTC](https://forum.kirupa.com/t/xml-image-gallery/96477 "2003-12-09T23:18:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![trowa](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@trowa](https://forum.kirupa.com/u/trowa)\
**Post date:** [December 9, 2003, 11:18pm UTC](https://forum.kirupa.com/t/xml-image-gallery/96477/1 "2003-12-09T23:18:33Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 10, 2003, 3:40am UTC](https://forum.kirupa.com/t/xml-image-gallery/96477/2 "2003-12-10T03:40:58Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 10, 2003, 7:51pm UTC](https://forum.kirupa.com/t/xml-image-gallery/96477/3 "2003-12-10T19:51:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 10, 2003, 7:54pm UTC](https://forum.kirupa.com/t/xml-image-gallery/96477/4 "2003-12-10T19:54:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 10, 2003, 9:02pm UTC](https://forum.kirupa.com/t/xml-image-gallery/96477/5 "2003-12-10T21:02:36Z")

</div>

In the XML file give it a full url attribute, something like

```php
<IMAGE FULLURL="urlToLargerImage" />

```

And then read that attributes using the attributes feature in Flash [AS]newImage.fullUrl = xmlObj.targetNode.attributes.FULLURL[/AS] (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 [AS]newImage.onRelease = function(){  
getURL(this.fullUrl, “\_blank”);  
}[/AS] 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](http://kirupa.com).

I hope these help you move in the right direction 🙂
