Non, vous devez utiliser ActionScript pour cela. Voici comment je le fais:
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);
}
}
}
Qu'est-ce que cela a à voir avec la programmation? –
@ Dr.Dredel, http://stackoverflow.com/faq –
@negative ... ouais, je suis au courant de cette faq ... mais il semble appuyer mon affirmation implicite que votre question n'appartient pas ici. Pourquoi ne pas poser une question sur une recette de gâteau pendant que vous y êtes? Si vous ne voulez pas de solution de codage à votre problème, vous devriez poser des questions sur l'IDE Flash sur le site Flash d'Adobe, non? –