PDA

View Full Version : [AS2] ComboBox: Dropdown showing different Fonts?


McNab
03-11-2010, 03:41 PM
Hi!

I would like to create a ComboBox to select a font for a TextBox. So far so easy. However I would like the Dropdown List to show the different fonts as such, i.e. dropdown list showing 'Arial', 'Times' in their respective fonts!

var besch_font_cb:ComboBox;
besch_font_cb.dataProvider = TextField.getFontList().sort();


is this possible?

Similar to this:

http://blog.flexexamples.com/2008/07/31/displaying-different-fonts-in-a-dropdown-menu-on-a-combobox-control-in-flex/

Help is appreciated!

McNab
04-06-2010, 04:24 PM
see his POST

http://www.actionscript.org/forums/showthread.php3?t=111950&highlight=fonts

Thanks loads...

:)