2016-04-13 8 views

答えて

1

あなたRadioButtonコンポーネントのラベルのフォントを変更するには、RadioButtonコンポーネントのラベル(TextFieldオブジェクト)に適用されますTextFormatを設定するRadioButton.setStyle()機能を使用することができます。そのために

、あなたは、例えば次のように行うことができます。

var text_format:TextFormat = new TextFormat(); 
    text_format.font = 'Verdana'; 
    text_format.color = 0xff0000; 

RadioButton(radio_button).setStyle('textFormat', text_format); 

あなたはまた、TextFieldオブジェクトを返すRadioButton.textFieldプロパティ使用してラベルに直接それを適用することができますことを

RadioButton(radio_button).textField.setTextFormat(text_format); 

希望を助けられる。

+0

ありがとうございました。 –

関連する問題