A StringValidator ensures text has been entered.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:StringValidator id="firstNameValidator" source="{firstNameTextInput}" property="text" /> <mx:TextInput id="firstNameTextInput" /> </mx:Application>