Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the ComboBox Component

Status
Not open for further replies.

phej

Technical User
Feb 8, 2005
22
US
I am working on a project where the user can click on a country (from a world map) and see if it has a missle defense system and other information about the it.

Some of the countries are so small, that I think the end user might have a problem clicking the right country, so I thought it would be cool to also include a ComboBox so that they can easily select the country they want to see.

I have all of the country names in the combobox as "labels" but how do I tell the combobox to load cuba.swf when they select cuba in the menu?
 
here at work: MX
at home: MX 2004

If need be, I can do it at home.
 
Essentially you just need to add data values to the combobox.

Search this forum on "combobox". There are a lot of good threads on the subject.
 
at its simplest in mx

countryCombo.setChangehandler("loadCountry");
function loadCountry(c){
countryCombo.loadScrollContent(c.getSelectedItem().label + ".swf");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top