Ciao .... fa caldo!codice:CONTROLL="0" function film_random(){ count=0 ID=String(random(8)+1) for (i = 0; i < CONTROLL.length; i++) { if (CONTROLL.charAt(i) == ID) { count++; } } if (count > 0) { count=0 errore = true; trace("fimato: "+ID+" già visto, allora riprova") if(CONTROLL.length<9){ film_random() }else{trace("visti tutti i filmati")} }else{ CONTROLL=CONTROLL+ID trace("vedi filmato: "+ID) } } film_random() bottone.onPress=function(){ trace(controll+":"+controll.length) film_random() }

Rispondi quotando