Created
September 12, 2008 14:43
-
-
Save danielvlopes/10451 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Função chamada no evento de CLICK do botão Cadastrar | |
private function cadastrarClickHandler():void{ | |
var evTituloValid:ValidationResultEvent = tituloValidator.validate(); | |
var evTextoValid :ValidationResultEvent = textoValidator.validate(); | |
//valida os campos obrigatórios | |
if ((evTituloValid.type== ValidationResultEvent.VALID) && | |
(evTextoValid.type == ValidationResultEvent.VALID)) | |
Alert.show('Validações com sucesso, agora envie para o SERVER', 'Sucesso'); | |
else | |
Alert.show('Você deve preencher os campos corretamente', 'Erro, campos inválidos'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment