este es el codigo del primer Scroll
Código HTML:
Objxml.onLoad = function ()
{
var header, link;
for (var i = 0; i < this.firstChild.childNodes.length; i++)
{
if (this.firstChild.childNodes[i].nodeName != null)
{
header = this.firstChild.childNodes[i].attributes.header;
for (var j = 0; j < this.firstChild.childNodes[i].childNodes.length; j++)
{
if (this.firstChild.childNodes[i].childNodes[j].nodeName == "link")
{
link = this.firstChild.childNodes[i].childNodes[j].firstChild.nodeValue;
}
}
arreglo.push (new struct (header, link));
}
}
window = "";
for (i = 0; i < arreglo.length; i++)
{
indice= "<a href=\"asfunction:trac\">" + arreglo[i].header + "</a><br>";
//window es el texto dinamico para el scroll
window+=indice;
}
};
Este es el codigo del segundo Scroll, donde esta el problema:
Código HTML:
function trac(index){
trace(index)
}
indice= "<a href=\"asfunction:trac,"+i+"\">" + arreglo[i].header + "</a><br>";
window+=indice;

