# Multiple groups of radio buttons

**URL:** <https://forum.kirupa.com/t/multiple-groups-of-radio-buttons/149681>\
**Category:** Uncategorized\
**Created:** [May 31, 2005, 4:19pm UTC](https://forum.kirupa.com/t/multiple-groups-of-radio-buttons/149681 "2005-05-31T16:19:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Big\_Red](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Big\_Red](https://forum.kirupa.com/u/Big_Red)\
**Post date:** [May 31, 2005, 4:19pm UTC](https://forum.kirupa.com/t/multiple-groups-of-radio-buttons/149681/1 "2005-05-31T16:19:42Z")

</div>

Can’t figure this out, every example I look at deals only with one set of radio buttons. I have 5 sets. Each set represents an answer to a question that needs to be stored true or false so that when the submit button is pressed the movie moves to the result frame which will have 5 separate mc each with 2 frames in them. Each of the two frames contains a button that corresponds to a frame in the movie that deals with the true or false answer. I need each separate answer to set which button is shown.

radio button labels are: one\_yes, one\_no in radio group name questionOne  
with one\_yes state true, data set to true, one\_no state false, data set to false.  
two\_yes, two\_no in radio group name questionTwo  
with two\_yes state true, data set to true, two\_no state false, data set to false.  
the third forth and fifth radio groups are set up the same.  
Here is the actionscript I have on the frame labeled questions which has all the radiobuttons and submit, reset buttons in it.

stop() ;  
//the display function  
function radioDisplay (component){  
radio = component.getData();  
}  
// Reset button function  
onReset = function () {  
// radio buttons  
one\_yes.setValue(true);  
two\_yes.setValue(true);  
three\_yes.setValue(true);  
four\_yes.setValue(true);  
five\_yes.setValue(true);  
}  
onSubmit=function(){  
\_root.gotoAndStop(“result”);  
}  
trace(questionOne);

my trace comes back [object object]

can you give me any suggestions.

thanks

bigRed
