Hi! I’ve searched for some solution but found nothing useful.
I’ve got a comboBox component on the stage, instance name ‘combo’. I want to style the text. I followed the adobe instructions, but they seem not work, and I get no errors.
import fl.data.DataProvider;
import flash.text.TextFormat;
var tf:TextFormat = new TextFormat();
tf.font = "Georgia";
tf.bold = true;
tf.size = 24;
var data = [
{ label:'A', value:1 }
,{ label:'B', value:2 }
,{ label:'C', value:3 }
];
combo.setStyle("textFormat",tf);
combo.dataProvider = new DataProvider(data);
Text doesn’t get the styles (font, bold, size).
What am I doing wrong?