PDA

View Full Version : How to get the value of a radio button


kitsunegari
04-29-2008, 02:44 AM
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

kitsunegari
04-29-2008, 02:47 AM
Thanks in advance for your help