Mi problema es que cada ves que se paso de una foto a otra tarda bastannte, es por eso que me puse a ser un prelouder que diga cragando xml mientras se carga dicha foto.
El problema es que no me sale.
El codigo es el siguiente, a ver si alguien bueno me puede ayudar:
miXML = new XML();
miXML.ignoreWhite = true;
miXML.onLoad = function(){
total = miXML.getBytesTotal();
cargados = miXML.getBytesLoaded();
porcentaje = Math.round((cargados/total)*100);
if(porcentaje >= 100){
removeMovieClip(cargandoXML)
imagenMostrada();
}
}
attachMovie("carga_xml","cargandoXML",2);
cargandoXML._x = 150;
cargandoXML._y = 200;
imagenMostrada = function(){
if(nombre=="picnic"){
//
titulo_txt.text = miXML.firstChild.childNodes[posP].attributes.title;
comentario_txt.text =miXML.firstChild.childNodes[posP].attributes.comment;
//
n_inicial = int(miXML.firstChild.childNodes[posP].attributes.id)
n_final = int(miXML.firstChild.lastChild.attributes.id)
imagenes_txt.text = "IMAGEN " + n_inicial + "-" + n_final;
//
imagen = miXML.firstChild.childNodes[posP].attributes.jpegURL;
c_imagen_mc.loadMovie(pathImaPic + imagen);
}else if(nombre=="quinta"){
titulo_txt.text = miXML.firstChild.childNodes[posQ].attributes.title;
comentario_txt.text =miXML.firstChild.childNodes[posQ].attributes.comment;
//
n_inicial = int(miXML.firstChild.childNodes[posQ].attributes.id)
n_final = int(miXML.firstChild.lastChild.attributes.id)
imagenes_txt.text = "IMAGEN " + n_inicial + "-" + n_final;
//
imagen = miXML.firstChild.childNodes[posQ].attributes.jpegURL;
c_imagen_mc.loadMovie(pathImaQui + imagen);
}else if(nombre=="retro"){
titulo_txt.text = miXML.firstChild.childNodes[posR].attributes.title;
comentario_txt.text =miXML.firstChild.childNodes[posR].attributes.comment;
//
n_inicial = int(miXML.firstChild.childNodes[posR].attributes.id)
n_final = int(miXML.firstChild.lastChild.attributes.id)
imagenes_txt.text = "IMAGEN " + n_inicial + "-" + n_final;
//
imagen = miXML.firstChild.childNodes[posR].attributes.jpegURL;
c_imagen_mc.loadMovie(pathImaRet + imagen);
}
}
//
if(nombre == "picnic"){
miXML.load(pathPic);
}else if(nombre == "retro"){
miXML.load(pathRet);
}else if(nombre == "quinta"){
miXML.load(pathQui);
}
//
si saben en donde me equiboco por favor posteenlo, gracias
