cannot detect if there is only 1 element in combo box?
I have an array of strings to set them into the combo box, a drop down combo box. I will select an element in the drop down combo box and press the button "delete". It will delete the element from the combo box. but when I come to the last combo box, im unable to delete it off because it does not get pass this line....
myEntries.selectedItem.label == myArray
why does myEntries.selectedItem.label isnt being detected in the last element?
Entries.addEventListener(Event.CHANGE, EntriesChange)
}
}
var str_entries:String="";
//set default
function EntriesChange(e:Event):void{
for(var i=0;i<myArray.length;i++)
{
if (myEntries.selectedItem.label == myArray){
str_entries = myArray;
trace("str_entries="+str_entries)
}
}
}