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);
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);
CyberProdigy, thanks a lot!!! For a long time I could’t change size of font in textfield in combobox.
With respect to you, Mary.
how can i get font list with web application? thanks.
Funciono muy bien… muchas gracias…
Thank you very much for the valuable information
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
Excellent example, and good for both the old school with AS2 (myself) and the newer version. Thanks!!
Very detailed post can i translate into German for our blogs visitors? Thanks
Lovely thank you for the info. A inspirational piece of info.
Thans for the nice post.
It is not working for me. Combobox doesn’t change.
Have you got an instance name for your textfield?
Is the code inserted at the same scope?
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.
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! 🙂