Deep 0 Denunciar post Postado Abril 16, 2004 Catei um código em AS de foto album com html, o que eu estou tentando fazer um esquema mas eu não estou conseguindo, é quando a pessoa clicar no botao next(próximo) vai para foto seguinte e quando clicar no botão back(volta), no jeito que está o código a só aparece a primeira foto.me ajuda ai.o código está ai embaixo.//initialize variables and propertiessquare._alpha = 0;whichPic = 1;//initiate change to new image when buttons are clickednext.onPress = function() { if (whichPic<4 && !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("../images/image"+whichPic+".jpg", "square"); loadMovie(_root.i2, "square"); fadeOut = false; fadeIn = true; } if (square._alpha<100 && fadeIn && !fadeOut) { square._alpha += 10; } else { fadeIn = false; } // limit input field if (input>4) { input = 4; } // 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 elseinputField.onKillFocus = function() { input = whichPic;}; Compartilhar este post Link para o post Compartilhar em outros sites
Deep 0 Denunciar post Postado Abril 16, 2004 Alguém sabe fazer isso......Por favor. Compartilhar este post Link para o post Compartilhar em outros sites
carneirinho 7 Denunciar post Postado Abril 16, 2004 Você instanciou os dois botões como "next" e ou outro como "back" ?? Compartilhar este post Link para o post Compartilhar em outros sites
Deep 0 Denunciar post Postado Abril 17, 2004 sim. Compartilhar este post Link para o post Compartilhar em outros sites