sabe o modelo que já tem no FLASH? é ele, mas muito modificado, só algumas ações eu mantive.
ele puxa umas 50 imagens, uma depois da outra(claro), com um botão pra ir e outro pra voltar.
Está tudo certo, os botões funcionam, mas eu queria que ao pressionar as setas no teclado, elas fisessem as ações dos botões.
o código é esse ( é um modelo do próprio FLASH )
square._alpha = 0; whichPic = 1; next.onPress = function() { if (whichPic<39 && !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("imagem"+"00"+whichPic+".jpg", "square"); fadeOut = false; fadeIn = true; } if (square._alpha<100 && fadeIn && !fadeOut) { square._alpha += 10; } else { fadeIn = false; } if (input>39) { input = 39; } if (Key.isDown(Key.ENTER)) { fadeOut = true; whichpic = input; } }; inputField.onKillFocus = function() { input = whichPic; };
valeu