NumberValidator used to check a value and if the number is an integer
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:NumberValidator source="{age}" property="text" allowNegative="false" negativeError="negative value" minValue="5" maxValue="10" domain="int" trigger="{submitButton}" triggerEvent="click" /> <mx:Text text="Enter your age:" /> <mx:TextInput id="age" /> <mx:Button label="Submit" id="submitButton" /> </mx:Application>