all groups > flash (macromedia) > march 2005 >
You're in the

flash (macromedia)

group:

Simple logic and syntax in FlashMX2004


Simple logic and syntax in FlashMX2004 Forzato
3/19/2005 8:09:39 PM
flash (macromedia): OK...
Drag three radio buttons to stage...
Give them each instance names, data, group names, and labels
Now, upon a user clicking a (non-component) movieclip/button how do I trace
the selected radio button data to output window?

My best attempt... trace (radioGroup.ABCinstance.selection.data);
- doesn't work, any thoughts?

Thanks!:frown;
Re: Simple logic and syntax in FlashMX2004 eRom
3/20/2005 3:23:16 PM
Hi,

Work with the radio group is the solution.
If you have 3 RadioButton with groupName named 'myGroup', you can access the
radio selecion directly with :

trace(myGroup.selectedRadio);

So you can do this for retreiving data : trace(myGroup.selectedRadio.data);

Hope I help you ;)
AddThis Social Bookmark Button