probandolo de local funciona de maravilla, se llenan todos los datos pero cuando lo subo a alguna web deja de funcionar, como que no encuentra el archivo..
¿es posible hacer esto? busque varias formas y siempre con el mismo resultado, lo hice con loadvariables, loadvars (que buscaban un txt en la ruta que le marcaba) y ahora intento con un xml.
les dejo el codigo a ver si pueden guiarme o si hay algo que se pueda hacer, muchas gracias!
Código ActionScript :
stop();
_root.createEmptyMovieClip("contenedoravatar", 0);
_root.contenedoravatar._x = 60;
_root.contenedoravatar._y = 130;
_root.contenedoravatar.loadMovie('http:\\URLLarga\avatar.JPG');
//
var obj_xml:XML = new XML();
obj_xml.ignoreWhite = true;
//
obj_xml.onLoad = function(exito) {
//
if (exito) {
dat1.text = obj_xml.firstChild.childNodes[0].firstChild.nodeValue;
dat2.text = obj_xml.firstChild.childNodes[1].firstChild.nodeValue;
dat3.text = obj_xml.firstChild.childNodes[2].firstChild.nodeValue;
dat4.text = obj_xml.firstChild.childNodes[3].firstChild.nodeValue;
post1.text = obj_xml.firstChild.childNodes[4].firstChild.nodeValue;
post2.text = obj_xml.firstChild.childNodes[5].firstChild.nodeValue;
post3.text = obj_xml.firstChild.childNodes[6].firstChild.nodeValue;
UrlPost1 = obj_xml.firstChild.childNodes[7].firstChild.nodeValue;
UrlPost2 = obj_xml.firstChild.childNodes[8].firstChild.nodeValue;
UrlPost3 = obj_xml.firstChild.childNodes[9].firstChild.nodeValue;
} else {
dat1.text = "Error";
dat2.text = "Error";
dat3.text = "Error";
dat4.text = "Error";
post1.text = "Error";
post2.text = "Error";
post3.text = "Error";
}
};
function cargarXML() {
obj_xml.load('http:\\URLLarga\datosUser.xml');
}
cargarXML(); 