Linking combo boxes

I’m new to Flash MX and its component system. How do I link the options (labels) in the combo box’s drop down menu to external links (other websites)? Thanks.

Put a combobox and name if ‘link’.
Then create a new layer in your timeline, name it ‘code’, and enter this :

 // ******************************************************************
// 1. The combobox
//4 lines at a time in the link ComboBox

// Populate de ComboBox
link.addItem("Kirupa", new Array(""));
link.addItem("Levitated", new Array(""));
link.addItem("Intersilence",new Array(""));
link.addItem("Billy Bussey",new Array(""));
link.addItem("Vts",new Array(""));
link.addItem("2advanced",new Array(""));
link.addItem("Praystation",new Array(""));

//2. Definition of the function
function afficherDetails(c){
&nbsp &nbsp &nbsp &nbsp trace ("****************************");
&nbsp &nbsp &nbsp &nbsp trace (c.getSelectedItem().label);
&nbsp &nbsp &nbsp &nbsp var j = c.getSelectedItem().data;
&nbsp &nbsp &nbsp &nbsp getURL(j[0]);
&nbsp &nbsp &nbsp &nbsp }

// 3. Calling afficherDetails when you click one entry

I hope it makes sense.

pom 0]

You’ll find the source here :…boLink.fla And here’s what it looks like :

pom 0]

Thank you

You’re Welcome.