I have a button that I need to pass the correct URL to. The problem I keep running into is that the data never passes correctly. It alyays gives me the last in the list.
Here is a preview of the code functions.
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
myLink = nodes*.attributes.urllink;
}
}
function callGetLink(urllink){
getURL(myLink);
};
URLbtn.onRelease = function() {
callGetLink(myLink);
};