# \[MX04\] Photo Gallery Using XML and Flash

**URL:** https://forum.kirupa.com/t/mx04-photo-gallery-using-xml-and-flash/191404
**Category:** flash
**Created:** [June 20, 2006, 8:31am UTC](https://forum.kirupa.com/t/mx04-photo-gallery-using-xml-and-flash/191404 "2006-06-20T08:31:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![viktig](https://avatars.discourse-cdn.com/v4/letter/v/eb9ed0/32.png) [@viktig](https://forum.kirupa.com/u/viktig)
#### Post date: [June 20, 2006, 8:31am UTC](https://forum.kirupa.com/t/mx04-photo-gallery-using-xml-and-flash/191404/1 "2006-06-20T08:31:38Z")

</div>

I have recently done the tutorial “Photo Gallery Using XML and Flash” which shows you how to build a single gallery. But I have multiple buttons refering to multiple galleries that I would like to display in the same frame (all buttons/galleries using the same movie clip holder, dynamic text box, arrows etc).

The way I solved it was to make the 12 buttons, and then have them go to the frame (using the script: on (release) {gotoAndStop(framename);}) which had the actionscript for that gallery in it, together with the textfield, movieclip, arrows, preloader etc. This worked fine, but it’s a lot of work updating the site. It would be better to have all buttons display the different galleries through the same elements.

Here’s an attachment of how I have currently built the site:

> **[kirupaForum](https://www.kirupa.com/forum/attachment.php?attachmentid=36947&d=1150791570)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

  
And here’s the link to the site in action: www.viktig.no

I have tried to take the script found here on the tuturial:  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery2.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery2.htm)  
and paste it directly into the action of the button, but this obviously does not work…
