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;
	trace(nome.text)
	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);
	} else {
		dati.sendAndLoad("inviamail.php", dati, "POST");
		gotoAndPlay(2);
	}
}