我想在 as3 中获取 radioButton 的标签高度。
我的 radioButton 组中有 5 个单选按钮。其中一个单选按钮有一个三行标签,另一个有一个单行等......
当我尝试访问时radioButton.height
,无论标签高度如何,我总是得到相同的值。
我需要知道标签的高度,所以我可以相应地设置 radioButton y 坐标。
我可以更改单选按钮的标签高度吗?
spacing = 30;
rb.label = tempQQString //from xml. long or short string anyone
rb.group = myGroup;
rb.value = i + 1;
rb.x = answerX;
rb.y = questionField.height + (questionY+20) + (i * spacing); // here use rb.height or rb.textField.height
trace("rb height**" + rb.height) // always get velue 22;
addChild(rb);