Hi,

Try this way,

----------------------------------------------------------------------------------
var anArray:Array = new Array("Um","Dois","TrĂªs","Quatro","Cinco");

comboListener = {
  change : function(evt){
     var type = evt.type;
     var target = evt.target;
     trace(_cb.selectedIndex);
  }
}


_cb.setStyle("embedFonts", true);
_cb.setStyle("fontFamily", "YOUR FONT HERE");
_cb.setStyle("fontSize", 8);
_cb.setStyle("themeColor", 0xeeeeee);


_cb.dataProvider = anArray;
_cb.addEventListener("change", comboListener);

----------------------------------------------------------------------------------

In addition to this,
Does anyone know how to change the color of the selected active item color in the list? It's always green even if i change the themeColor to "haloBlue" or "haloOrange"...

Jorge Rego





----- Original Message ----- From: "Fredrik Lantz" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'" <flashcoders@chattyfig.figleaf.com>
Sent: Tuesday, November 22, 2005 1:15 PM
Subject: [Flashcoders] Embedding fonts in component


Hi



Im working on a project were im jusing a combobox, i have to use a mask over
it but then the selected item wont show, probably because the font isnt
embeded.



The problem i have is to embed the font. Does anyone have a solution to this
problem.



Realy greatful for all the answers i can get.



//Fredrik





_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to