# \[Flash Mx\] Please Help! Stuck with forms with components

**URL:** <https://forum.kirupa.com/t/flash-mx-please-help-stuck-with-forms-with-components/329784>\
**Category:** flash\
**Created:** [October 15, 2012, 6:17pm UTC](https://forum.kirupa.com/t/flash-mx-please-help-stuck-with-forms-with-components/329784 "2012-10-15T18:17:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maximillionhoe](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@maximillionhoe](https://forum.kirupa.com/u/maximillionhoe)\
**Post date:** [October 15, 2012, 6:17pm UTC](https://forum.kirupa.com/t/flash-mx-please-help-stuck-with-forms-with-components/329784/1 "2012-10-15T18:17:07Z")

</div>

Hey all,

I’m trying to work out this tutorial  
[http://www.kirupa.com/developer/mx/components.htm](http://www.kirupa.com/developer/mx/components.htm)

I want to be able to add more radio buttons and more checkboxes that give me another answer in the result part.

So far I tried this addidnt this to frame 1

// 1. Radion buttons  
// -----------------

// The display function  
function radioDisplay (component) {  
radio = component.getValue() ;  
}  
// We assign this function to the group gender  
gender.setChangeHandler (“radioDisplay”) ;

// 2. Radion buttons  
// -----------------

// The display function  
function radio2Display (component) {  
radio2 = component.getValue() ;  
}  
// We assign this function to the group gender  
test.setChangeHandler (“radio2Display”) ;

and added to results

result.text = "You are a “+radio+”  
";  
result.text = "You are a “+radio2+”  
";

No success :S. Any help would greatly be appreciate. I am no pro with flash, but I am usually able to understand the scripts and modify them to my needs. But this time, I’m stuck.

With the addition i made, it was able to recognize my radio and checkbox buttons, but it only gave me one line with the answer instead of two seperate ones (one answer for every different group).

I’m trying to build a form that actually allows me to have many multiple choices for different questions.

Thanks in advance
