Using the SocialSecurityValidator class
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Form id="identityForm">
<mx:FormItem id="ssnItem" label="Social Security Number">
<mx:TextInput id="ssnField" />
</mx:FormItem>
</mx:Form>
<mx:SocialSecurityValidator id="ssV" source="{ssnField}" property="text" />
</mx:Application>
Related examples in the same category