João escreveu:
> Hey,
>
> I have a DateValidator defined on AS3:
>
> var dateValidator:DateValidator=new DateValidator();
> dateValidator.source=dataDeNascimentoTxt;
>
> I am using this DateValidator to verify if the birth date was filled
> correctly. The problem is that if the date is wrong, a red border and
> a message will appear on the dataDeNascimentoTxt. Is there a way to
> avoid this red border and message?
>
> Thanks,
>
> João Saleiro
> --
> www.riapt.org
> www.webfuel.pt
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
> __________ NOD32 2769 (20080107) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>
Hi Joao,
Try this (not sure if works):
var dateValidator:DateValidator=new DateValidator();
dateValidator.source=dataDeNascimentoTxt;
dateValidator.addEventListener(FlexEvent.VALID,onValidatorValidEventHandler);
private function onValidatorValidEventHandler(event:FlexEvent):void {
event.target.errorString = '';
}
Tell me if it worked,
Frederico Garcia