I'm using Flash 8 and I've used the radio button component. I have 4 instances
of a radio button. The radio group is named radioQ1 and the instance names are
q1a q1b q1c and q1d. I cannot find out how to find out which option has been
selected when the continue button (btnQ1) is pressed.
I have
btnQ1.onPress = function() {
}
but I'm not sure what to put inside to find the value of my radio group.
Thanks for helping...
clbeech - 08 Jul 2008 21:01 GMT
you should be able to use something like:
btnQ1.onPress = function() {
var choice = radioQ1.selection;
trace(choice);
}
gandalf458 - 09 Jul 2008 07:14 GMT
Thanks, I tried that but I just get "undefined". I guess I'm missing something rather obvious...