info= new LoadVars();
info.load("imagenes.txt");
info.onLoad= function(leer){
if(leer){
fotos= new Array();
for(i=1; i<=info.total; i++){
fotos[i]= this["fotos"+i];
}
// creamos dos movie clips vacios
_root.createEmptyMovieClip("imagen1",10);
imagen1._x= 10
imagen._y= 10
_root.createEmptyMovieClip("imagen2",11);
imagen2._x= 10
imagen2._y= 10
im=1;
imagen1.loadMovie("imagenes/"+fotos[im]);
im++;
imagen2.loadMovie("imagenes/"+fotos[im]);
imagen2._alpha=0;
disol= 40;
vel=40;
count_d=0;
count_f=0;
curr_mc=1;
onEnterFrame = function(){
if(curr_mc==1){
count_f++;
if(count_f>=vel){
curr_mc=2;
cambio="IN";
}
}
if(curr_mc ==2) {
if(cambio =="IN"){
imagen2._alpha+= 100/disol;
if(imagen2._alpha>=100){
imagen2._alpha=100;
cambio="FIJO";
count_f=0;
im++;
if(im== fotos.length){
im=1;
}
imagen1.loadMovie("imagenes/"+fotos[im]);
}
}
if(cambio == "FIJO"){
count_f++;
if(count_f>=vel){
cambio="OUT";
}
}
if(cambio == "OUT"){
imagen2._alpha= 100/disol;
if(imagen2._alpha<=0){
imagen2._alpha=0;
curr_mc=1;
count_f=0;
im++;
if( im== fotos.length){
im=1;
}
imagen2.loadMovie("imagenes/"+fotos[im]);
}
}
}
};
}
};
Si pudieran ayudar se les agradeceria bastante.
