Using a combobox to navigate to scenes with as3
I'm a novice. I'm trying to use a combobox to navigate to different scene in my .fla. I was able to use a conditional (if) statement which seems to work but it only allows me to use the "if" and "else if" statement once before giving an error. i examined information on using a "switch" but haven't had any luck understanding the coding or getting it to work. The following is the code I've wrote. Can anyone provide me some guidance? Thanks in advance.
cb1.addEventListener(Event.CHANGE, home_dl);
function home_dl(e:Event)
{
if (cb1.selectedItem.label == "A - B")
{
gotoAndPlay(65, "a-b");
}
else if (cb1.selectedItem.label == "C - D")
gotoAndPlay(65, "c-d");
}
