Foros del Web » Creando para Internet » Flash y Actionscript »

Esto no Funka en flash 8

Estas en el tema de Esto no Funka en flash 8 en el foro de Flash y Actionscript en Foros del Web. quiero llamar .jpg externos con este codigo las carga pero al apretar siguiente no carga la sigueinte foto. next.onPress = function() { if (whichPic<22 && ...
  #1 (permalink)  
Antiguo 16/02/2007, 13:51
 
Fecha de Ingreso: mayo-2005
Mensajes: 10
Antigüedad: 18 años, 10 meses
Puntos: 0
Esto no Funka en flash 8

quiero llamar .jpg externos con este codigo las carga pero al apretar siguiente no carga la sigueinte foto.



next.onPress = function() {
if (whichPic<22 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("imagenes/nacional/image"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
// limit input field
if (input>22) {
input = 22;
}
// initiate change to new image when Enter key is pressed
if (Key.isDown(Key.ENTER)) {
fadeOut = true;
whichpic = input;
}
};
// if a number is entered in the input field but Enter is not pressed, change
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
input = whichPic;
};
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:46.