Hi All,
I have asked this question in many forums and is disappointing to see that there are no replies.
Hoping to get a reply, I put this question to fellow AS3 developers on Kirupa forum.
How do we load system fonts inside a comboBox?
I have written code to populate the system fonts and store it in an array.
var systemFonts:Array = new Array();
var fontNames:Array =new Array();
systemFonts = Font.enumerateFonts(true);
systemFonts.sortOn("fontName");
for(var i:int = 0; i < systemFonts.length; i++)
{
fontNames.push(systemFonts*.fontName);
}
If myComboBox is the combobox instance, how do I get it to display the fontNames.?
Your help would be highly appreciated.
Regards,
Avi