[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

    Einmal editiert, zuletzt von zadda (19. April 2012 um 13:49)

  • ok i got it,

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

    Code
    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 :

    Code
    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/FlashPla…TextFormat.html

    see ya

    z

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!