Using PhoneNumberValidator
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:PhoneNumberValidator id="phoneValidator" source="{phoneTextInput}" property="text" required="false" /> <mx:TextInput id="phoneTextInput" /> </mx:Application>