Validators declaration:






AS3 code:

public function resetForm():void {
formObject = new formObject(); // the object the form editors (TextInput / ComboBox / etc...) are binded to
callLater(resetValidationWarnings);
}

private function resetValidationWarnings():void {
for each (var validator:Validator in validators) {
UIComponent(validator.source).errorString = "";
}
}

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/PDtRKA3vXKg/12887