prova un po con

Codice PHP:
indietro.onRelease = function() {
   
this.gotoAndPlay(1);
   
index--
   if (
index >=1) {
     
_root.targetClip.Alpha(false020""""_root.Preloadindex);
   } else {
     
index myArray.length-1;
    
_root.targetClip.Alpha(false020""""_root.Preloadindex);
   }
};


avanti.onRelease = function(){
this.gotoAndPlay(1);
index++
if (
index <= myArray.length-1) {
        
_root.targetClip.Alpha(false020""""_root.Preloadindex);
} else {
   
index 0;
   
_root.targetClip.Alpha(false020""""_root.Preloadindex);
}
};