# XML combination problem

**URL:** <https://forum.kirupa.com/t/xml-combination-problem/297537>\
**Category:** flash\
**Created:** [October 4, 2009, 7:05pm UTC](https://forum.kirupa.com/t/xml-combination-problem/297537 "2009-10-04T19:05:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Echelon](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@Echelon](https://forum.kirupa.com/u/Echelon)\
**Post date:** [October 4, 2009, 7:05pm UTC](https://forum.kirupa.com/t/xml-combination-problem/297537/1 "2009-10-04T19:05:50Z")

</div>

Hi,

I’m kind of stuck and I was wondering if anyone here could help me out with this one :  
I’m trying to use the tutorial on dynamic xml menu’s with the one of the dynamic xml photogallery. The gallery’s code states at one point :  
[COLOR=#000050]xmlData[/COLOR].[COLOR=#0000d0]load[/COLOR]COLOR=#0000ff[/COLOR];

How can the source file mentioned here (images.xml) be turned into a variable? For instance:  
If there are multiple galleries , the menu is populated with galleries named images1, images2 etc etc , each with their .xml file . If in the menu system images2 is clicked , the photogallery shows this gallery ( so the code should say : [COLOR=#000050]xmlData[/COLOR].[COLOR=#0000d0]load[/COLOR]COLOR=#0000ff[/COLOR]; I guess ) … But how can I tell Flash to use this xml file?

Am i making any sense at all here ?  
:puzzle:
