hiya
i’m trying to create a ‘survey’ with multiple groups of radio buttons.
eg:
how do you rate this page> 1 2 3 4 5
how do you rate this site> 1 2 3 4 5
how do you rate this script> 1 2 3 4 5
etc
i can grab the data from 1 group of buttons, but struggling with a second, heres what i have so far:
lo = new Object();
lv = new LoadVars();
lo.click = function (evt:Object){
lv.evt.target.groupName = evt.target.selection.data;
trace("The selected radio button group name is " + evt.target.groupName);
trace("The selected radio button label " + eval(evt.target.selectedRadio).label);
}
q1.addEventListener("click", lo);
q2.addEventListener("click", lo);
stop();
in this i have called GroupName for 1st group ‘q1’ 2nd group ‘q2’
to simply display the result in a dynanic text box along the lines of:
for q1 you selected 4
for q2 you selected 3
would be a great leap for me, any help greatly appreciated
nev