How to get the value of a radio button

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:

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