Wednesday, May 21, 2008

Flex Formatter: Sample Phone Formatter in MXML

The component Flex PhoneFormatter takes any number or String can be converted into a number and formats like a phone number. The PhoneFormatter offers the opportunity to set the format of the chain of output using property formatString. The default is this property is (###) ###-####, where # represents the location of a number (American standard). The following example will produce 123.456.7890:
---------------------------------------------------------------------------------




---------------------------------------------------------------------------------

By default, the property formatString can specify several characters. These characters are given by the property validPatternChars, which has the default +, (,), #, -,. and space



No comments: