【问题标题】:iterating through radiobuttons遍历单选按钮
【发布时间】:2009-12-28 19:00:37
【问题描述】:

有没有办法遍历属于某个组或影片剪辑的单选按钮? 像这样:

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";
}

【问题讨论】:

    标签: actionscript-3 radio-button


    【解决方案1】:
    radioButtons.getRadioButtonAt( i )
    

    getRadioButtonAt documentation

    【讨论】:

    • 非常感谢!不知道我怎么会错过这个:/
    猜你喜欢
    • 2021-12-23
    • 1970-01-01
    • 2011-08-05
    • 2013-10-23
    • 2014-08-10
    • 1970-01-01
    • 2019-04-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多