MXML validator classes
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:NumberValidator id="salaryV" source="{salaryTxt}" property="text" trigger="{salaryTxt}" triggerEvent="change" /> <mx:Form id="myForm"> <mx:FormHeading label="Insert Data" /> <mx:FormItem label="Insert your Salary"> <mx:TextInput id="salaryTxt" /> </mx:FormItem> </mx:Form> </mx:Application>