Search code examples
actionscript-3apache-flexactionscriptflex4

Flex 4 - Which event is useful for form validation Except Button Click?


I have done the Form validation for a Button Click. But I want to know the better event for the same Form validation. Because I have to change the Button enabled property value before and after the From validation.


Solution

  • You can validate a field one by one after focusOut (Adobe Docs reference)-event fires and set the Button enabled property to true after all fields have been properly validated.