The ZipCodeFormatter class is used for format a zip code. You can use formatString property for formatting a zip code.
The ZipCodeFormatter class is used for format a zip code. You can use formatString property for formatting a zip code.The ZipCodeFormatter class is used for format a zip
code. You can use formatString property for formatting a zip code.
There are many format for zip code such as
#####-####
##### ####
#####
### ###
If an error occurs this error will be shown by the error property. The error
property has two types of error values: Invalid value, Invalid format.
The tag of ZipCodeFormatter is <mx:ZipCodeFormatter>.
|
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"minWidth=" 955" minHeight="600"><![CDATA[ import mx.events.ValidationResultEvent;{ result = zcValidator.validate(); if (result.type==ValidationResultEvent.VALID) {Zipcodelbl.text= zipFormatter.format(ziptxt.text); } else {Zipcodelbl.text= "Invalid ZipCode";} } ]]> </s:Application> |
To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.