Post Code Checker (AS2)

This is another old piece of AS2 code that I created to validate British postal codes. In AS3 this is an easy task as AS3 supports regular expressions and there exists a regular expression for post code formats. See BS 7666. In this case I had to create a function that took an input string, converted it to a format code and checked that code against the possible values for each format. I have made the code for this function available here on the off chance that it is useful to someone! Feel free to use it, but leave me a comment if you do!
I used a transparent glass UI PSD provided by PixelsDaily.com and some tick and cross icons that i found at icon finder for the visuals.




Your comment...

Name Email - required, will not be published URL

Notify me of follow-up comments?

Please enter the word you see in the image below: