# Load variable file name from param tag

**URL:** https://forum.kirupa.com/t/load-variable-file-name-from-param-tag/185130
**Category:** Uncategorized
**Created:** [April 11, 2006, 7:43am UTC](https://forum.kirupa.com/t/load-variable-file-name-from-param-tag/185130 "2006-04-11T07:43:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ulaga](https://avatars.discourse-cdn.com/v4/letter/u/7ab992/32.png) [@ulaga](https://forum.kirupa.com/u/ulaga)
#### Post date: [April 11, 2006, 7:43am UTC](https://forum.kirupa.com/t/load-variable-file-name-from-param-tag/185130/1 "2006-04-11T07:43:47Z")

</div>

Hi Guys,

Iam new to this site 🍺

I have this smal problem of loading the xml file name from param tag in html, the xml file name is a variable which i am passing liks this

\<param name=“movie” value=“slideshow.swf?x2xml=xmlphoto.xml”\>

Iam trying top get this x2xml file name into the flash file, but tits not working, if I try the xml file name directly its working perfectly…this is how iam calling the variable

**Action Script**

xxml = myPhoto.loadVariables(“x2xml”);  
myPhoto.load(xxml);  
{  
blah blah  
etc  
}

* * *

can any one guide me on how to get the variable name from the html param tag.

thanz in advance.

---

<div class="post-metadata">

### Author: ![skOOb](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@skOOb](https://forum.kirupa.com/u/skOOb)
#### Post date: [April 11, 2006, 11:51am UTC](https://forum.kirupa.com/t/load-variable-file-name-from-param-tag/185130/2 "2006-04-11T11:51:24Z")

</div>

If you are passing it like “flash.swf?x2xml=myfile.xml” then you should just be able to say  
[AS]  
xxml = \_level0.x2xml;  
myPhoto.load(xxml);  
{  
blah blah  
etc  
}  
[/AS]  
hth 🍺

btw, this should probably be posted in Flash:Actionscript.

---

<div class="post-metadata">

### Author: ![ulaga](https://avatars.discourse-cdn.com/v4/letter/u/7ab992/32.png) [@ulaga](https://forum.kirupa.com/u/ulaga)
#### Post date: [April 12, 2006, 5:16am UTC](https://forum.kirupa.com/t/load-variable-file-name-from-param-tag/185130/3 "2006-04-12T05:16:47Z")

</div>

Thanks a lot skoob.

That did it. :kommie:
