U.S. State Array/List for Flash

Ok so just right now I was having to find a list of states and put them in this custom drop down 'component' I was building. But I didn't have a full list of the states and anywhere. So I decided I would compile two lists for you guys to use if need be.

I did do a google search trying to find it, but all I could find was one for PHP and not Flash. So... here you go! Hope it helps a few of you guys out! Oh and keep in mind this was a QUICK post. Sorry if there are a few errors. Let me know if you find any also so I can update!

Update: I looked over both arrays and they should match up and work great. Enjoy!

Check after break for the code...

 
//straight array with full names
 
var usStates:Array = [
"Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado",
 "Connecticut", "Delaware", "District Of Columbia", "Florida", "Georgia",
 "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky",
"Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota",
"Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire",
 "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota",
"Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina",
 "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington",
 "West Virginia", "Wisconsin", "Wyoming"
];
 
//state abbrevations
var statesAbbr:Array = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL",
"GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN",
"MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR",
"PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"];

4 Responses to “U.S. State Array/List for Flash”


  1. 1 Adam Martinez

    Awesome! Thanks! It saved me some time.

  2. 2 John

    Thanks for making this available. Maybe now I won’t get carpel tunnel.

  3. 3 Diego

    Genius! thanks u!!

  4. 4 Michael

    Another big thank you for taking the time to put this together, and to publish it.

Leave a Reply






Bad Behavior has blocked 261 access attempts in the last 7 days.