通过radiobuttons迭代

时间:2009-12-28 10:55:14

标签: actionscript-3 radio-button

有没有办法迭代属于某个组或动画片段的单选按钮? 像这样:

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 个答案:

答案 0 :(得分:2)

radioButtons.getRadioButtonAt( i )

getRadioButtonAt documentation