Set StringValidator to validate required field
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:StringValidator id="reqV" source="{inputA}" property="text" required="true" /> <mx:TextInput id="inputA" /> <mx:Button label="Submit" click="reqV.validate();" /> </mx:Application>