I'm still working on learning Flex, having previously worked
in VB, ASP and PHP. Today I was working on a small form that needed
to be validated. My specs are that all fields are required, and the
submit button is to remain disabled until all fields are valid.
In the past I have used a simple summing function to see how
many fields in a form were valid; if less than the total field
count then validation failed.
Here is what I wrote in my Flex project. Is there a more
efficient method that I should be using? Execution seems to be
instant, but if this does not conform to "best practices" I'd like
to know the alternative. Thank you for your input.