# XML Gallery Mod Question

**URL:** <https://forum.kirupa.com/t/xml-gallery-mod-question/196961>\
**Category:** flash\
**Created:** [August 12, 2006, 4:24am UTC](https://forum.kirupa.com/t/xml-gallery-mod-question/196961 "2006-08-12T04:24:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchild](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jchild](https://forum.kirupa.com/u/jchild)\
**Post date:** [August 12, 2006, 4:24am UTC](https://forum.kirupa.com/t/xml-gallery-mod-question/196961/1 "2006-08-12T04:24:10Z")

</div>

I am trying to make multiple galleries with a series of buttons. I am trying to make each button populate the ActionScript to call for a new xml file. Here is the code I need to dynamically populate.

**xmlData.load(“images.xml”);**

How do I make this a variable of some kind and then use a button to populate it. Here is my best stab at it… I know nothing about this. Please help…

**My Example:**  
MAIN AS CODE: xmlData.load(gallery);  
BUTTON 1 CODE: gallery==images1.xml  
BUTTON 2 CODE: gallery==images2.xml

Please help me make this really work. Thank you.
