How can the script below be recoded to work with a flash MX 2004 combo box?
// Main Functions… This controls your Drop Down / Combo Box.
// The AddItems function assigns values to the drop down box from the external source
function AddItems() {
for (i=0; i<NumItems; i++) {
var Name = eval(“Name”+i);
var DataRow = eval(“DataRow”+i);
dropDown.addItem(Name, DataRow);
}
//Set ChangeHandler (this is the most important line).
dropDown.setChangeHandler(“SelectItem”);
}
// The SelectItem function tells the movie what to do when a user
// Clicks on a certain Item in the drop down movie - this is your OnChange Handler.
// In this example we use it to open up a new URL.
function SelectItem(){
URLName = dropDown.getSelectedItem().label;
URL = dropDown.getSelectedItem().data;
getURL(URL, “_blank”);
}