Hello all,
Ok I’m having a problem linking to an external website by clicking on a link in my gallery. I’m back into Flash after taking a 2 year break, EEKS!
Here is my code:
var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild;
trace(gallery.childNodes.length)
for (var i = 0; i<gallery.childNodes.length; i++) {
tArray.push(gallery.childNodes*.attributes.title);
pArray.push(gallery.childNodes*.attributes.source);
qArray.push(gallery.childNodes*.attributes.link);
}
containerMC.loadPic(0);
} else {
title_txt.text = “Error!”;
}
};
I’m Using a picture_mask to do the clicking and here’s what I have for that:
Key.addListener(listen);
q = 0;
picture_mask.onRelease = function ()
{
getURL(link[q], “_blank”);
};
And then in my xml stylesheet I have it like this:
<portfolio>
<image title=“Kirupa Rocks” source=“web1.jpg” link="<A href=“http://www.kirupa.com/"/">http://www.kirupa.com/”/>
</portfolio>
Everytime I click on the mask it opens up my root folder in explorer where I have all the files stored for my site… What gives?
Thanks in advance for your help.
Swamyg1