Merrill, Jason wrote:
Currently, my code is://( locations_cb is my combobox) function change(evt){ evt.target.selected = evt.target.selectedItem.label } locations_cb.addEventListener("change", this); create_btn.onRelease = function(){ myFunction(locations_cb.selected, [...morevalues]) } This works, but only as long as something is selected from the combobox. If nothing is selected by the user, the value gets passed as "[object Object]" - I understand why if nothing is selected, but how do I overcome this - by automatically setting something to be selected? If so, how? I tried this when the frame containing my form is loaded:locations_cb.selectedIndex=0;
That line does the job for me (in another project, in which I have that line right after the one in which I set the combobox dataProvider). I'm not sure what you're referring to by locations_cb.selected in your function call though -- shouldn't that be locations_cb.selectedItem? (or selectedIndex)
Helen _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

