PDA

View Full Version : Combo Box Simple question.


mitchrichie
05-13-2007, 10:43 PM
I have a combo box named "jacketSize" that is inside the movie clip called "jacketChoice_mc". I can see the initial setting of the combo box using the following line:

trace(_root.jacketChoice_mc.jacketSize.selectedIte m.label);

But when the user changes the selection the output box does not update.

What do I need to do so that whenever a user changes the selection of the combo box someting else happens using that new value?

For example. When the user chooses a size from the drop down combo box that size should be sent via PHP to a MYSQL database.

I'm just not sure how to work with getting the values out of the combo box.

Thanks.

astgtciv
05-14-2007, 06:20 AM
You need to listen to the "change" event broadcast by the combobox instance, see here: http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002149.html .