I added a custom class for a custom font in the flash project library. Now when i try to embed the font and use it from actionscript , the text is not getting visible.
There is no error being thrown. Here is my code.
var tabfont:Font = new tabHeaderFont();
var format:TextFormat = new TextFormat();
format.font = tabfont.fontName;
tab.defaultTextFormat = format;
tab.embedFonts = true;
addChild(tab);
Can anybody figure out what is wrong with this.