# How to get the value of a radio button

**URL:** <https://forum.kirupa.com/t/how-to-get-the-value-of-a-radio-button/258864>\
**Category:** flash\
**Created:** [April 29, 2008, 1:51am UTC](https://forum.kirupa.com/t/how-to-get-the-value-of-a-radio-button/258864 "2008-04-29T01:51:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitsunegari](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kitsunegari](https://forum.kirupa.com/u/kitsunegari)\
**Post date:** [April 29, 2008, 1:51am UTC](https://forum.kirupa.com/t/how-to-get-the-value-of-a-radio-button/258864/1 "2008-04-29T01:51:42Z")

</div>

Hi

I’m using the Radio Button component of flash and I drag and drop it on my scene.

I named the RadioButtonGroup as “test” but my problem is that I can’t get the value of the selected button.

If I do:

```auto
trace(test.selectedData);

```

I get the following error message: **1120: Access of undefined property test.**

But I set the RadioButtonGroup as test in the property panel of each button.  
What’s wrong?

Many thanks for your help
