//Array di comodo TOT=10 nomi=new Array() for(I=1;I<=TOT;I++){ nomi[I]=I } function anima(){ X=0 this.onEnterFrame=function(){ ID = random(TOT)+1 if(Number(nomi[ID]) > 0){ X++ // conta i clip nomi[ID]=0 // azzero l'array per non ripetere //path["a"+ID].play() trace("clip A"+ID+" .....animazione") }else{ trace("nessuna animazione clip A"+ID+"...già chiamato") } if(X >=TOT){ // le animazioni sono state eseguite tutte delete this.onEnterFrame } } } // chiamo funzione anima()