What I do when I want two validators on
one field is create a third validator and then in its validate method call the
other two validators (this is one reason we have those static methods). <mx:Validator field=”myField”
validate=”doBothValidators(event.validator)” /> <mx:Script> Function doBothValidators(validator :
Validator) : Void {
StringValidator.validateString(validator, myField, {options…}); OtherValidator.validate…(…); } </> We are trying to see what we can do to
make the validator system a little more developer-friendly in the next release. HTH, Matt From: Ketan Bengali
[mailto:[EMAIL PROTECTED] Is there any way where in I can have 2 (custom) validators for 1 field. |
- Re: [flexcoders] Another on validators Matt Chotin
- Re: [flexcoders] Another on validators Ketan Bengali