codice:import mx.controls.Alert; Stage.scaleMode = "noscale"; Selection.setFocus("Nome"); // perchè non setta il fuoco?? // verifica 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); } }; inserimento.onRelease = function() { var myVars = new LoadVars(); var path = this._parent; myVars.Nome = Nome.text; myVars.onLoad = function(success) { if (success) { inserimento.enabled = false; Nome.text = "Nome"; if (this.vailda) { Alert.show(this.errorMsg, "ATTENZIONE!!", Alert.OK | Alert.CANCEL, path, myClickAlert); } } else { Alert.show("Non è stato possibile inserire i dati - Contattare l'aministatore", "ATTENZIONE!!", Alert.OK); } }; myVars.sendAndLoad("http://localhost/miofile.php", myVars, "POST"); };