views:

84

answers:

1

Is there a way to iterate through radiobuttons belonging to a certain group or movieclip? Like this:

private var radioButtons:RadioButtonGroup = new RadioButtonGroup("radioButtons");
for (var i:int = 0; i < radioButtons.numRadioButtons; i++ )
{
    trace(radioButtons);
// Here i want to do something like this: radioButtons[i].label = "hello";
}
+1  A: 
radioButtons.getRadioButtonAt( i )

getRadioButtonAt documentation

Andy Jacobs
Thanks a bunch! No idea how i could've missed this :/
Johan