In a previous example, “Using the ZipCodeValidator class to validate US or Canadian zip codes”, we saw how you could validate US or US/Canadian zip codes using the Flex ZipCodeValidator class.
The following example shows how you can use the new “Canada only” zip code validator domain type to ensure users only enter a Canadian postal code.
This example requires Flex SDK 3.2.0.3349 or later. To download the latest version of the Flex SDK, see http://opensource.adobe.com/…/flexsdk/Downloads/.
Full code after the jump.
Continue reading ‘Using the ZipCodeValidator class to validate US or Canadian zip codes (redux)’



