In Flex, you use a validator to ensure the values in the fields of an object meet certain criteria. You can assign each field of an object to a single validator. I”ve used the mx.validators.Validator class, which is an ActionScript class that you can extend to add your own validation logic as I have below. I also added a <mx:Model> tag to hold the error message that will be displayed if the validation fails. The model can then be populated with error messages that are maintained outside of the Flex application.
Flex Custom Validation
March 28th, 2006 · No Comments
Tags: Flex