Please help,
have created a form in flash MX that contains a number of comboboxes. I populate these boxes by loading values from mySQL via PHP. So far so good...
my problem is in finding the correct event to run some code after a selection has been made.
currently i am using the onrelease function to populate a dynamic text field with the index of the selected item. (until i can figure out exactly what i'm going to do with the selected values!!)
selTeam_mc.cboPl_gk.onRelease = function() {
var plval;
plval = selTeam_mc.cboPl_gk.getselectedindex();
selTeam_mc.temp_txt.text = plval;
};
The only problem is, i click on the combobox to open the list, (the field updates with the last selected item), when you then select a new item, this doesn't update the field. (At the moment the value in the temporary text field lags behind the value selected in the combobox)
So i guess the question i am asking is; what event can i use for my combobox that will update my field as soon as an item is selected?
I hope you can understand my ramblings,
C
have created a form in flash MX that contains a number of comboboxes. I populate these boxes by loading values from mySQL via PHP. So far so good...
my problem is in finding the correct event to run some code after a selection has been made.
currently i am using the onrelease function to populate a dynamic text field with the index of the selected item. (until i can figure out exactly what i'm going to do with the selected values!!)
selTeam_mc.cboPl_gk.onRelease = function() {
var plval;
plval = selTeam_mc.cboPl_gk.getselectedindex();
selTeam_mc.temp_txt.text = plval;
};
The only problem is, i click on the combobox to open the list, (the field updates with the last selected item), when you then select a new item, this doesn't update the field. (At the moment the value in the temporary text field lags behind the value selected in the combobox)
So i guess the question i am asking is; what event can i use for my combobox that will update my field as soon as an item is selected?
I hope you can understand my ramblings,
C