Data Model Flex



    
        
        import mx.formatters.*;
        
        public var fmtZip:ZipCodeFormatter = new ZipCodeFormatter();
        public function formatThis(plainText:String,formatString:String):String
        {
            fmtZip.formatString = formatString;
            return(fmtZip.format(plainText));
        }