Form data validation
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Form> <mx:FormItem label="Name"> <mx:TextInput id="username"/> </mx:FormItem> <mx:FormItem> <mx:Button id="button" label="Submit"/> </mx:FormItem> </mx:Form> <mx:Validator source="{username}" property="text" /> </mx:Application>