JohanB
12-28-2009, 09:34 AM
i have a movieclip where i have a set of radiobuttons. Inside the class of this movieclip i do 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";
}
But i want to manipulate the individual choices. Is there a way to loop through all radiobuttons of a specific group or movieclip?
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";
}
But i want to manipulate the individual choices. Is there a way to loop through all radiobuttons of a specific group or movieclip?