Set format string for ZipCodeFormatter
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:TextInput text="{zipCodeFormatter.format(123456789)}" /> <mx:ZipCodeFormatter id="zipCodeFormatter" formatString="#####-####" /> </mx:Application>