There are couple of approaches for performing form validation in flex.
Here I would be presenting the combination that appeared to me more logical and eligant.
< height="100%" width="100%">
<mx:formitem required="true" label="User ID" >
< id="txtUserId" width="235" height="20" focusout="performRequiredFieldValidation(event);">
do what you like ........
Here I would be presenting the combination that appeared to me more logical and eligant.
< height="100%" width="100%">
<mx:formitem required="true" label="User ID" >
< id="txtUserId" width="235" height="20" focusout="performRequiredFieldValidation(event);">
do what you like ........