Código :
//Funcion de precarga
function precargaXML(archivo) {
_root[archivo].onEnterFrame = function() {
pesoTotal = this.getBytesTotal;
pesoCargado = this.getBytesLoaded;
peso = Math.ceil((pesoCargado/pesoTotal)*100);
_root.texto_txt.htmlText = "Cargando datos... "+peso+"%";
if (peso>=100) {
delete this.onEnterFrame;
}
};
}
//Función que carga el XML
function cargaContenido(exito) {
if (exito) {
_root.precargaXML(this);
misNodos = this.firstChild.childNodes.length;
contenido = this.firstChild.firstChild.childNodes;
_root.texto_txt.htmlText = contenido;
} else {
_root.texto_txt.htmlText = "Fichero XML no cargado!!!";
}
}
//Creamos el objeto de XML
miContenido = new XML();
miContenido.ignoreWhite = true;
miContenido.load("xml/"+carpetaXML+"/"+archivoXML+".xml");
miContenido.onLoad = cargaContenido;de ante mano gracias y espero y me puedan dar una orientacion al respecsto
