[LIST=1]
[]Is there any way to create multiline text in the radio button textfield?
[]Is there any way to assign htmlText to the radio button’s label?
[/LIST]
Here is some code I’m working with:
var myGroup:RadioButtonGroup = new RadioButtonGroup("group1");
myGroup.addEventListener(Event.CHANGE, changeHandler);
for (var i:int = 0; i < choices.length; i++) {
var rb:RadioButton = new RadioButton();
rb.textField.multiline = true;
// Two lines below are buggy
//rb.setSize(300, rb.height);
//rb.textField.wordWrap = true;
rb.textField.embedFonts = true;
rb.textField.antiAliasType = AntiAliasType.ADVANCED;
rb.setStyle("textFormat", answerFormat);
rb.textField.autoSize = TextFieldAutoSize.LEFT;
rb.label = choices*;
rb.group = myGroup;
rb.value = i + 1;
rb.x = answerX;
rb.y = answerY + (i * spacing);
addChild(rb);
}