Originariamente inviato da crescenzo
prova con una cosa del genere
...Grazie per la risposta...ma sono ancora intasato
![]()
Ti posto tutto il codice...se potessi indicarmi dove piazzare le modifiche te ne sarei molto grato
dove finestra è il nome di istanza del movie clip nel quale visualizzare le immagini, e back e next sono i nomi di istanza di 2 bottoni per lo scorrrimento delle foto.codice://initialize variables and properties finestra._alpha = 0; _global.whichPic = 1; //initiate change to new image when buttons are clicked next.onPress = function() { if (_global.whichPic<11 && !fadeIn && !fadeOut) { fadeOut = true; _global.whichPic++; input = _global.whichPic; } }; back.onPress = function() { if (_global.whichPic>1 && !fadeIn && !fadeOut) { fadeOut = true; _global.whichPic--; input = _global.whichPic; } }; _root.onEnterFrame = function() { // when a new Photo is selected, fade out, load new image, and fade in if (finestra._alpha>10 && fadeOut) { finestra._alpha -= 10; } if (finestra._alpha<10) { loadMovie("images/"+_global.whichPic+".jpg","finestra"); fadeOut = false; fadeIn = true; } if (finestra._alpha<100 && fadeIn && !fadeOut) { finestra._alpha += 10; } else { fadeIn = false; } // limit input field if (input>11) { input = 11; } // initiate change to new image when Enter key is pressed if (Key.isDown(Key.ENTER)) { fadeOut = true; _global.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 = _global.whichPic; };
Grazie![]()