# \[flash8\]\[help!\] multiple groups of radioButtons

**URL:** <https://forum.kirupa.com/t/flash8-help-multiple-groups-of-radiobuttons/244621>\
**Category:** Uncategorized\
**Created:** [November 20, 2007, 10:30am UTC](https://forum.kirupa.com/t/flash8-help-multiple-groups-of-radiobuttons/244621 "2007-11-20T10:30:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nevstah](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@Nevstah](https://forum.kirupa.com/u/Nevstah)\
**Post date:** [November 20, 2007, 10:30am UTC](https://forum.kirupa.com/t/flash8-help-multiple-groups-of-radiobuttons/244621/1 "2007-11-20T10:30:57Z")

</div>

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:

```auto
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
