Pherank
October 18th, 2008, 10:06 PM
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?
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[i];
rb.group = myGroup;
rb.value = i + 1;
rb.x = answerX;
rb.y = answerY + (i * spacing);
addChild(rb);
}
Is there any way to assign htmlText to the radio button's label?
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[i];
rb.group = myGroup;
rb.value = i + 1;
rb.x = answerX;
rb.y = answerY + (i * spacing);
addChild(rb);
}