(Last Updated On: February 27, 2018)

Ever needed to change the font size of a standard flash combobox component?

You will need to give it an instance name e.g. “myCombobox” and then add the following code:

myCombobox.setStyle("fontSize", 10);


Mariya · July 13, 2012 at 11:07

CyberProdigy, thanks a lot!!! For a long time I could’t change size of font in textfield in combobox.

With respect to you, Mary.

Asp Kodlar? · February 14, 2012 at 14:22

how can i get font list with web application? thanks.

Mike · September 2, 2011 at 00:18

Funciono muy bien… muchas gracias…

Claus Haynes · August 19, 2011 at 07:07

Thank you very much for the valuable information

Bondara UK · June 24, 2011 at 13:12

I am a regular reader of your blog and would just like to say thanks! I have even been inspired to start my own site so please have a look. Bondara UK

Tom · May 10, 2011 at 19:48

Excellent example, and good for both the old school with AS2 (myself) and the newer version. Thanks!!

Maurita Hosford · November 11, 2010 at 16:12

Very detailed post can i translate into German for our blogs visitors? Thanks

Ebel wathes · October 14, 2010 at 14:57

Lovely thank you for the info. A inspirational piece of info.

car radio mounting · June 6, 2010 at 17:12

Thans for the nice post.

cyberprodigy · April 14, 2010 at 11:03

It is not working for me. Combobox doesn’t change.

    Andrew · April 14, 2010 at 11:09

    Have you got an instance name for your textfield?
    Is the code inserted at the same scope?

      cyberprodigy · April 14, 2010 at 11:26

      Wow, that was a quick reply from you (;

      Yes, scope was correct, but what did work in the end, however, was this piece of code.

      var tf:TextFormat = new TextFormat();
      tf.size = 30;myCombobox.textField.setStyle(“textFormat”, tf);myCombobox.dropdown.setRendererStyle(“textFormat”, tf);

      I hope we are both talking about AS3 here (;. Nice blog, btw.

        Andrew · April 14, 2010 at 11:38

        Thanks for the useful info.

        There would be the other problem, my example was done in Actionscript 2 and yours is in Actionscript 3.

        But at least now the answer for both versions are on one page! 🙂

Leave a Reply

Your email address will not be published.

%d bloggers like this: