Originariamente inviato da bir
Ok funziona.
Ma se volessi togliere il bottone e fare un'estazione ciclica sulla time line principale?
Non sono riuscito, ma sento che tu ce la puoi fare!
:-)
ahahahahah xrò la prox volta la fai tu

beh creati una funzione che chiami quando vuoi :P

codice:
valore_array = new Array();

function NumRandom(){
  totalNum = 6;
  rnd = Math.random()*totalNum;
  return(parseInt(rnd)+1);
}

function VerificaArray(numeroRand){
   for(i=0;i<6;i++){
      if(valore_array[i] == numeroRand)
         return false;
   }
   valore_array.push(numeroRand);
   return numeroRand;
}

function QuelloCheVuoi(){					
	do {
  		a = VerificaArray(NumRandom());
	} while (a == false)		
	return(a);
} 

//esempio
trace(QuelloCheVuoi());
trace(QuelloCheVuoi());
trace(QuelloCheVuoi());
trace(QuelloCheVuoi());
trace(QuelloCheVuoi());
trace(QuelloCheVuoi());
ciao