我创建了一个名为cb的文本框,我添加了项目
cb.addItem( { label: "Sovereign", data:1 } );
cb.addItem( { label: "Banks (with option - I)", data:2 } );
cb.addItem( { label: "Banks (with option - II)", data:3 } );
cb.addItem( { label: "Retail", data:4 } );
cb.addItem( { label: "Residential", data:5 } );
cb.addItem( { label: "Corporate", data:6 } );
我想在上面设置这些列表项的样式。我已将setStyle设置为文本框,但它只更改所选项的stlye。
var myFormat:TextFormat = new TextFormat("verdana",12,0x000000);
cb.textField.setStyle ("textFormat",myFormat);