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
link.setRowCount(4);
// Populate de ComboBox
link.addItem("Kirupa", new Array("http://www.kirupa.com"));
link.addItem("Levitated", new Array("http://www.levitated.net"));
link.addItem("Intersilence",new Array("http://www.intersilence.com"));
link.addItem("Billy Bussey",new Array("http://www.billybussey.com"));
link.addItem("Vts",new Array("http://vts330.tripod.com"));
link.addItem("2advanced",new Array("http://www.2advanced.com"));
link.addItem("Praystation",new Array("http://www.Praystation.org"));
//2. Definition of the function
function afficherDetails(c){
        trace ("****************************");
        trace (c.getSelectedItem().label);
        var j = c.getSelectedItem().data;
        getURL(j[0]);
        }
// 3. Calling afficherDetails when you click one entry
link.setChangeHandler("afficherDetails");
I hope it makes sense.
pom 0]
You’ll find the source here : membres.lycos.fr/museebra…boLink.fla And here’s what it looks like :
pom 0]
Thank you
You’re Welcome.