function trova(value){
for(var i = 0; i < numeriscelti.length; i++){
if(value == numeriscelti[i]){
trace ("trovato!");
}
else
{
trace ("non trovato!");
}
}
}
facendola partire col click sul bottone ACTION avente il seguente codice..
on (release) {
value=3;
trova();
}
anche se
numeriscelti= new array (3,6,7,12); //ovvero comprende il valore 3
mi viene sempre nel trace "NON TROVATO!" :master:
Grazie per indicarmi dove sto fagianando!![]()
ps:Ho provato senza alcun miglioramento anche a mettere:
value="3";
e l'array
numeriscelti= new array ("3", "6", "7", "12");
![]()

Rispondi quotando