Checking if the phone number entered is a valid format
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:PhoneNumberValidator source="{phone}" property="text" trigger="{submitButton}" triggerEvent="click" /> <mx:Text text="What number can we reach you at?" /> <mx:TextInput id="phone" /> <mx:Button label="Submit" id="submitButton" /> </mx:Application>