PDA

View Full Version : ComboBox help!!


ericeye
02-08-2005, 05:21 PM
I am setting up a form which is using a couple of ComboBoxes. When I submit the form the data that is selected in the ComboBox is not passed along to the data collection file. I know I need to setup an event listener but I'm not sure how to do this. Any ideas? Any help? :D

Xeef
02-08-2005, 05:32 PM
L = {};
L.change = function(eventObj) {
trace("Value changed to "+eventObj.target.value);
};
My_cb.addEventListener("change", L);

ericeye
02-08-2005, 08:22 PM
thanks but i get this error message when i go to check the script:
**Error** Scene=Scene 1, layer=drop down, frame=1:Line 2: Statement must appear within on/onClipEvent handler
L.change = function(eventObj) {

any ideas about what that means?