Нет, вам нужно использовать ActionScript для этого. Вот как я это делаю:
package com.twoa.ui.base.controls {
import fl.controls.ComboBox;
import fl.controls.List;
import flash.text.Font;
import flash.text.TextFormat;
public class MyComboBox extends ComboBox {
private var textFormat:TextFormat;
private var textFormat2:TextFormat;
public function MyComboBox() {
super();
forceStyle();
}
public function forceStyle() {
var f:Font = new Interface();
var textFormat:TextFormat = new TextFormat()
textFormat.size = 8;
textFormat.color = 0xffffff;
textFormat.font = f.fontName
var textFormat2:TextFormat = new TextFormat()
textFormat2.size = 8;
textFormat2.color = 0xffffff;
textFormat2.font = f.fontName
dropdown.setRendererStyle("embedFonts", true);
dropdown.setRendererStyle("textFormat", textFormat);
textField.setStyle("embedFonts", true);
textField.setStyle("textFormat", textFormat2);
}
}
}