salve...
perchè, se, premendo un pulsante che carica dei dati da dei text input, almeno uno dei text dei text input è vuoto, non va al fotogramma 3? ma al 2?
Il codice associato all'azione del pulsante é questa:
codice:
on (release) {
dati = new LoadVars();
dati.nome = nome.text;
dati.email = email.text;
dati.oggetto = oggetto.text;
dati.messaggio = messaggio.text;
dati.priorita = priorita.selectedItem.label;
if (nome.text == "") {
nome.text = "CAMPO OBBLIGATORIO";
gotoAndPlay(3);
} else if (email.text == "") {
email.text = "CAMPO OBBLIGATORIO";
gotoAndPlay(3);
} else if (oggetto.text == "") {
oggetto.text = "CAMPO OBBLIGATORIO";
gotoAndPlay(3);
} else if (messaggio.text == "") {
messaggio.text = "CAMPO OBBLIGATORIO";
gotoAndPlay(3);
}
dati.sendAndLoad("inviamail.php", dati, "POST");
gotoAndPlay(2);
}
grazie... ciao.