# Pass variable as URL in getURL?

**URL:** <https://forum.kirupa.com/t/pass-variable-as-url-in-geturl/234844>\
**Category:** flash\
**Created:** [August 6, 2007, 4:36pm UTC](https://forum.kirupa.com/t/pass-variable-as-url-in-geturl/234844 "2007-08-06T16:36:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![withinsight](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@withinsight](https://forum.kirupa.com/u/withinsight)\
**Post date:** [August 6, 2007, 4:36pm UTC](https://forum.kirupa.com/t/pass-variable-as-url-in-geturl/234844/1 "2007-08-06T16:36:25Z")

</div>

So I’ve loaded this XML data into my Flash file, and now that its there, I’m trying extract a URL from the XML data and pass it into a getURL function. Looks something like this:

on(release){  
getURL(my\_xml.firstChild.firstChild.nodeValue);  
}

This construct doesn’t seem to be working, as I think it may have to do with the default (url, window, method) properties of the getURL function. The XML data located at my\_xml.firstChild.firstChild.nodeValue is simply a URL ([http://www.blahblahblah.com)](http://www.blahblahblah.com%29). Any ideas? Thanks!
