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/
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”/>