# Loading a dynamic location by html var

**URL:** <https://forum.kirupa.com/t/loading-a-dynamic-location-by-html-var/268974>\
**Category:** Uncategorized\
**Created:** [August 21, 2008, 2:17am UTC](https://forum.kirupa.com/t/loading-a-dynamic-location-by-html-var/268974 "2008-08-21T02:17:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uni](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@uni](https://forum.kirupa.com/u/uni)\
**Post date:** [August 21, 2008, 2:17am UTC](https://forum.kirupa.com/t/loading-a-dynamic-location-by-html-var/268974/1 "2008-08-21T02:17:40Z")

</div>

hello there,  
i have some problem…  
**how can i load location from var in html?**  
this is the html code that load the flash

```auto
<div align="center" id="flashcontent" class="virtual">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player 9</a> and a browser with JavaScript enabled.</div> 
<script type="text/javascript">
var so = new SWFObject("vrTapis/pano.swf", "pano", "750", "350", "9", "#FFFFFF"); 
so.addVariable("xml_file","vrTapis/tapis.xml");
so.addParam("allowFullScreen","false");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
try{        
window.document["pano"].focus();
}catch(err){
//Do nothing
}
</script>

```

this is the AS that load the xml file

```auto
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("google_AD.xml");  

```

i want to get a thing like that

```auto
xmlData.load("$var/google_AD.xml"); 

```

how i’m doing that?  
that the $var load the location from the HTML page.  
thanks allot
