# Flash-XML Linking to URLs

**URL:** <https://forum.kirupa.com/t/flash-xml-linking-to-urls/199316>\
**Category:** flash\
**Created:** [September 1, 2006, 12:43pm UTC](https://forum.kirupa.com/t/flash-xml-linking-to-urls/199316 "2006-09-01T12:43:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![checkone](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@checkone](https://forum.kirupa.com/u/checkone)\
**Post date:** [September 1, 2006, 12:43pm UTC](https://forum.kirupa.com/t/flash-xml-linking-to-urls/199316/1 "2006-09-01T12:43:59Z")

</div>

I’m having a problem making the ‘download pdf’ link to function how i want it. it’s opening a blank window but its not targeting the url i’ve specified in the xml

can anyone help me?

the url is: [http://www.danielatkinson.com/test1/](http://www.danielatkinson.com/test1/)

thanks!

ACTIONSCRIPT CODE:

function loadImage()  
{  
var perc = -690+((currentLoad+1)/preloadNum)\*614;  
loader.bar.\_x = perc  
images.attachMovie(“mainImage”,“image”+loadArray[currentLoad],currentLoad+1);  
images[“image”+loadArray[currentLoad]].\_x = 2000;  
if(myXML.firstChild.childNodes[loadArray[currentLoad]].attributes.caption)  
{

```
    //images["image"+loadArray[currentLoad]].captionText.text = myXML.firstChild.childNodes[loadArray[currentLoad]].attributes.caption;
    images["image"+loadArray[currentLoad]].caption_mc.captionText.text = myXML.firstChild.childNodes[loadArray[currentLoad]].attributes.caption;

```

images[“image”+loadArray[currentLoad]].caption\_mc.onRelease = function(){  
getURL(myXML.firstChild.childNodes[loadArray[currentLoad]].attributes.url, “\_blank”);  
}

```
}
myImageLoader.loadClip(myXML.firstChild.childNodes[loadArray[currentLoad]].attributes.img,images["image"+loadArray[currentLoad]].imageHolder);

```

}

THE XML:  
\<image img=“images/large/test\_1.jpg” thumb=“images/sml/test\_t1.jpg” caption=“download pdf” url=“[http://www.google.com](http://www.google.com)”/\>
