If you put all your validators in an Array you can do this:

var results:Array = Validator.validateAll(arrayOfValidators);
if (results.length == 0)
{
   // all are valid!
}
--- In flexcoders@yahoogroups.com, "Sergey Kovalyov"
<[EMAIL PROTECTED]> wrote:
>
> Hi All!
> 
> How to perform validation when it is needed? Should I use
> validateAll([myValidator]) static method in this particular case?
> 
> Also I would like to know what is replacement for "deprecated"
> isValid() method? Should I use validate() method with appropriate
> parameter from property of control to be validated? But it does not
> seem ok, because Validator itself has source and property properties
> defined.
> 
> Sergey.
>







--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to