Problema con cargar fotos externas
Publicado por Pablo (2 intervenciones) el 01/09/2006 06:05:37
Hola, tengo un problema, estoy haciendo una galeria de fotos pero que se cargen externas las fotos, pero el boton siguiente no pasa a la segunda foto, aqui les dejo el codigo haber si alguien me puede ayudar porfavor
gracias.
square._alpha = 0;
whichPic = 1;
next.onPress = function() {
if (whichPic<20 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("/galeria/imagen"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
if (input>20) {
input = 20;
}
if (Key.isDown(Key.ENTER)) {
fadeOut = true;
whichpic = input;
}
};
inputField.onKillFocus = function() {
input = whichPic;
};
gracias.
square._alpha = 0;
whichPic = 1;
next.onPress = function() {
if (whichPic<20 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("/galeria/imagen"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
if (input>20) {
input = 20;
}
if (Key.isDown(Key.ENTER)) {
fadeOut = true;
whichpic = input;
}
};
inputField.onKillFocus = function() {
input = whichPic;
};
Valora esta pregunta


0