mmmh.. aspè.. mo ti faccio vedere il codice.. ho anche un problema sulla ricerca di una stringa, praticamente un controllo sull'indirizzo email:
codice:
on (release) {
ricchiocciola = cemail.email.indexOf( "@" );
ricpunto = cemail.email.indexOf( "." );
if (cnome.nome.text == "" || ccognome.cognome.text == "" || ccitta.citta.text == "" || cogg.ogg.text == "" || ctesto.testo.text == "") {
popup._visible = true;
popup.attenzione.text = "UNO O PIU' CAMPI CONTRASSEGNATI COME OBBLIGATORI NON SONO STATI RIEMPITI O SONO STATI IMMESSI VALORI NON VALIDI. RIPROVA!";
} else if (ricchiocciola == (-1)) {
popup._visible = true;
popup.attenzione.text = "IL FORMATO DELL'INDIRIZZO EMAIL NON E' VALIDO!";
} else if (ricpunto == (-1)){
popup._visible = true;
popup.attenzione.text = "IL FORMATO DELL'INDIRIZZO EMAIL NON E' VALIDO!";
} else if (this.cemail.email.text == "" || this.ctel.telefono == "") {
popup._visible = true;
popup.attenzione.text = "DEVI INSERIRE IL TELEFONO O L'INDIRIZZO EMAIL!";
} else {
trace("ooooooookkk")
}
}
Dove:
codice:
if (cnome.nome.text == "" || ccognome.cognome.text == "" || ccitta.citta.text == "" || cogg.ogg.text == "" || ctesto.testo.text == "")
mi funziona..
codice:
} else if (ricchiocciola == (-1)) {
non mi funziona 
codice:
} else if (ricpunto == (-1)){
non mi funziona 
codice:
} else if (this.cemail.email.text == "" || this.ctel.telefono == "") {
non mi funziona