You are not logged in.

1

Wednesday, April 18th 2012, 3:54pm

[SOLVED] ComboBox.fla editing font and/or embedding font ?

Hi there, *smile*

i'm currently editing the combobox.fla source (1.08.14),
i've successfully changed fill, strokes and arrow but cannot find where editing the used font ?

where do you edit the dynamic textfield ?
at first i just want change color font , is it in the .fla or by .XML settings ?

at the end , i want embbed my own font in combobox.fla, then 2 mere questions :
-How to embbed my font in the .fla
-How to setup my .xml to display my embedded font ?

i've searched first in the doc and forum,
there mention of "cbfont" and "itemfont" parameters,
but if my font is not in the system user, it surely won't display, right ?

so, waiting for the answer, if somebody know *rolleyes*

thanks

z

This post has been edited 1 times, last edit by "zadda" (Apr 19th 2012, 1:49pm)


2

Thursday, April 19th 2012, 1:48pm

ok i got it,

to simply change color font, add in the fla source :

Source code

1
2
3
4
5
6
7
var tf:TextFormat = new TextFormat();
tf.color = 0x777777;
tf.size = 8;

combobox.textField.setStyle("textFormat",tf);

combobox.dropdown.setRendererStyle("textFormat", tf);


and with embbeded font in library :

Source code

1
2
3
4
5
6
7
8
var tf:TextFormat = new TextFormat();
tf.color = 0x777777;
tf.size = 8;
tf.font = "FFFCorporate" // see Library for embedded font

combobox.textField.setStyle("textFormat",tf);

combobox.dropdown.setRendererStyle("textFormat", tf);


info on textformat AS3 : http://help.adobe.com/fr_FR/FlashPlatfor…TextFormat.html

see ya

z

Similar threads