I have a set of radio buttons call radioGroup, how can i check to see if any in the group has a value of true and if not then....
This is what i have so far, not sure if correct:
if (radioGroup == true) {
var temp = "true";
for (var i = 0; i<radioGroup.length; i++) {
if (radioGroup.getStateAt(i) == true) {
temp = "false";
break;
}
}
return temp;
} else {
tellTarget ("n"
{
gotoAndPlay("show2"
;
///above is the error message saying to make a selection casue none has been made.
}
return true;
}
}
This is what i have so far, not sure if correct:
if (radioGroup == true) {
var temp = "true";
for (var i = 0; i<radioGroup.length; i++) {
if (radioGroup.getStateAt(i) == true) {
temp = "false";
break;
}
}
return temp;
} else {
tellTarget ("n"
gotoAndPlay("show2"
///above is the error message saying to make a selection casue none has been made.
}
return true;
}
}