Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/04/2011, 03:34
Diorkel
 
Fecha de Ingreso: abril-2011
Mensajes: 6
Antigüedad: 13 años, 1 mes
Puntos: 0
Respuesta: Galeria flash. No se ven las fotos al subirla.

El código lo he imitado de una web es el siguiente:

function showNext() {
depth++;
clone = cage.attachMovie("imagemc", "imagemc"+depth, depth);
cage["imagemc"+(depth-10)].removeMovieClip();
curimg++;
if (curimg>images.length-1) {
curimg = 0;
}
preload(images[curimg], clone);
trace("curimg = "+curimg);
}
function showPrevious() {
depth++;
clone = cage.attachMovie("imagemc", "imagemc"+depth, depth);
cage["imagemc"+(depth-10)].removeMovieClip();
curimg--;
if (curimg<0) {
curimg = images.length-1;
}
preload(images[curimg], clone);
trace("curimg = "+curimg);
}
function preload(file, clip) {
loadMovie(path+file, clip.cage);
clip.onEnterFrame = function() {
tkb = this.cage.getBytesTotal();
lkb = this.cage.getBytesLoaded();
p = Math.round(lkb/tkb*100);
if (isNaN(p)) {
p = 0;
}
if (p>0) {
percentage = p;
}
if (lkb == tkb && p>99) {
percentage = "";
this.maskmc.dotween();
if (autoplaymc._currentframe == 2) {
clearInterval(autoID);
autoID = setInterval(showNext, delay);
}
delete this["onEnterFrame"];
}
};
}
function autoPlay() {
autoID = setInterval(showNext, delay);
showNext();
autoplaymc.gotoAndStop(2);
}
function stopAutoPlay() {
clearInterval(autoID);
autoplaymc.gotoAndStop(1);
}
images = [];
images[0] = "topo_imgs/img1.jpg";
images[1] = "topo_imgs/img2.jpg";
images[2] = "topo_imgs/img3.jpg";
/*images[3] = "topo_imgs/img4.jpg";
images[4] = "topo_imgs/img5.jpg";
images[5] = "topo_imgs/img6.jpg";
images[6] = "topo_imgs/img7.jpg";*/
curimg = -1;
depth = 100;
delay = 5000;
autoPlay();


como ves indica que las imágenes están en la carpeta "topo_imgs" para restarle peso al .Fla.