A ver si me echa alguien un capote, hombre, que yo siempre que puedo ayudo a los demás.
Código :
_root.galeria.cargafoto.createEmptyMovieClip("holder",3);
_root.fotogrande.cargador.createEmptyMovieClip("holder2",1);
var image="news/thumb/"+_level0.ref1f+"_thumb.jpg";
var image2="news/full/"+_level0.ref2f+"_full.jpg";
_root.galeria.cargafoto.holder.loadMovie(image);
_root.fotogrande.cargador.holder2.loadMovie(image2);
_root.galeria.cargafoto.onEnterFrame=function(){
percent=int((_root.galeria.cargafoto.holder.getBytesLoaded()/_root.galeria.cargafoto.holder.getBytesTotal())*100);
if(!isNan(percent)){
_root.galeria.precarga.text=percent+" %";
}else{
_root.galeria.precarga.text="5 %";}
if(percent == 100){
delete _root.galeria.cargafoto.onEnterFrame;
}}
_root.fotogrande.cargador.onEnterFrame=function(){
percent2=int((_root.fotogrande.cargador.holder2.getBytesLoaded()/_root.fotogrande.cargador.holder2.getBytesTotal())*100);
if(!isNan(percent2)){
_root.fotogrande.precarga2.text=percent2+" %";
}else{
_root.fotogrande.precarga2.text="5 %";}
if(percent2 == 100){
delete _root.fotogrande.cargador.onEnterFrame;
}}
stop(); 