I think I do... But it would be easier if you attached your .fla or a mock up, for me(us) to better understand it, and not have to re-create it based on the little info provided.
I dont know how to attach any thing as I'm real new to posting.
Please tell me more.
Basically,
all want to do is change what is selected in a combobox without physically selecting it.
Combobox1 1 2 3 4
with value 1 2 3 4
when I type 3 in a text box it displays a selected 3 on the combobox and if I typed getValue it would display 3 without having to physically select.
When you make a post, there's a box at the bottom of the post form that says Attach File... Just hit the Browse button to the right of it and attach the .fla you've got!
What event do you want to trigger the updating of the other components? Do you mean that you'd like to set the selected item in Combo Box B immediately when a user has selected an option from Combo Box A?
Try this -
Code:
function boxA_cb_handler(){
var selectedItem = boxA_cb.getSelectedItem().label;
if(selectedItem == "A"){
boxB_cb.setSelectedIndex(index);
// "index" being the item that you'd like to
// have selected in boxB_cb when "A" is the
// selected option
} else if (selectedItem == "B"){
// and keep repeating this for all options...
}
}
// this will assign the function above to be called whenever
// someone selects an item from "boxA_cb"
boxA_cb.setChangeHandler("foo_cb_handler");
Of course, this assumes that you have already populated "boxB_cb" with items. If you haven't you can use the "addItem()" method in place of "setSelectedIndex()" and just populate your other combo box manually.
MD
I don't want to change any values in the code all I want it to do is automatically change the selection so that when you use if .getValue it will respond with what is selected
MD
I'm having about of trouble with which one takes priority, one of them always overpowers whether it is first in the code or it has enterframe selected.
How can I make them all equal in priority.
I've updated the combo mock so that it works
and it now has a text box and 2 combo boxes
I know need to make them all linked so what is typed or selected affects the other 2 without one overpowering the other