Quickie | Populating a ComboBox Component With Countries



A really simple Flash method for you, but one that will save you a lot of time when designing form based flash applications...the country combobox. Sounds simple, it is, but rather than painfully populating a combobox component with over a hundred different countries, use the dataprovider and a simple array instead and you have already saved yourself many minutes of typing in data (see below).

  • Create a new flash document.
  • Drag a combobox component from the Components Panel to the first frame of the default layer. Name the instance 'countries'.
  • Select the first frame of the default layer and add the following code within the Actions Panel. Save your FLA and preview to view a super simple timesaving combobox!