import mx.events.ValidationResultEvent;
import mx.controls.Alert;
import mx.validators.Validator;
private var _validators:Array;
private function initializeHandler(event:Event):void {
_validators = [usernameValidator, phoneValidator, emailValidator, zipCodeValidator];
}
private function runValidators(event:Event):void {
var results:Array = Validator.validateAll(_validators);
if(results.length > 0) {
for(var i:uint = 0; i < results.length; i++) {
Alert.show(results[i].target.source.id);
}
}
}