Pues yo acabo de hacer una prueba y me lo ha hecho perfectamente. Mira tengo un .swf con el siguiente código:
Código :
// Creamos el objeto XML
miXML = new XML();
miXML.ignoreWhite = true;
miXML.onLoad = function (leido){
if (leido){
i = 0;
testXML();
}
else{
trace("No se puede leer el XML");
}
}
miXML.load("libros.xml");
function testXML (){
documento = miXML.firstChild;
libro = miXML.firstChild.childNodes[i];
ref_txt = libro.attributes.ID;
tit_txt = libro.childNodes[0].firstChild;
aut_txt = libro.childNodes[1].firstChild;
edi_txt = libro.childNodes[2].firstChild;
url_txt = "<a href=\""+libro.childNodes[3].attributes.URL+"\" target=\"_blank\">"+libro.childNodes[3].firstChild+"</href>";
}Luego en el .swf donde tengo el ScrollPane solo he puesto el componente en el escenario y le he puesto de contentPath "pracxml.swf" y ya esta.
Deu!!
