scusa ho provato ma mi blocca lo script mi appare un messaggio che mi consiglia di interrompere lo script
codice:
Stage.scaleMode = "noscale";
import mx.controls.Alert
Selection.setFocus("Nome"); // perchč non setta il fuoco??
// verifica
inserimento.onRelease = function() {
myVars = new LoadVars();
myVars.Nome = Nome.text;
myVars.onLoad = function(success) {
if (success) {
inserimento.enabled = false;
Nome.text = "Nome";
if (this.vailda) {
myClickAlert = function (evt)
{
if (evt.detail == Alert.OK) {
trace(Alert.okLabel);
_root.mess.text = "OK";
} else if (evt.detail==Alert.CANCEL){_root.mess.text = "CANCEL";trace(Alert.cancelLabel);
}
};
Alert.show(this.errorMsg, "ATTENZIONE!!", Alert.OK | Alert.CANCEL, this, myClickAlert);
// condizione per Alert
}
} else {
Alert.show("Non č stato possibile inserire i dati - Contattare l'aministatore", "ATTENZIONE!!", Alert.OK);
}
};
myVars.sendAndLoad("http://localhost/miofile.php", myVars, "POST");
};