# Syntax problem with variable AS2

**URL:** <https://forum.kirupa.com/t/syntax-problem-with-variable-as2/236931>\
**Category:** flash\
**Created:** [August 25, 2007, 2:17am UTC](https://forum.kirupa.com/t/syntax-problem-with-variable-as2/236931 "2007-08-25T02:17:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tin\_soldier](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@tin\_soldier](https://forum.kirupa.com/u/tin_soldier)\
**Post date:** [August 25, 2007, 2:17am UTC](https://forum.kirupa.com/t/syntax-problem-with-variable-as2/236931/1 "2007-08-25T02:17:46Z")

</div>

Hi there,

I have a swf that I am loading into my main movie which uses an xml gallery.

The line of code that brings in the xml file is:  
xmlData.load(“filename.xml”);

I would like to be able to reuse the swf and change out the xml file using a variable I will call from a menu. I can’t work out what the correct syntax should be. What do I replace the quote marks around filename.xml with? My variable is called \_global.xmlFile.

Any help greatly appreciated.
