actionscript 3 - Flash Pro - AS3 embeded font not Showing up on Button Label in iOS -
so have annoying issue can't solve. creating app in flash pro/as3 ios. have button label font want change:
var buttontextformat:textformat = new textformat("showcard gothic", 120); //buttontextformat.size = 120; //buttontextformat.font = "showcard gothic"; //buttontextformat.embedfonts = true; buttontextformat.color = 0x00ff00; //buttontextformat.embedfonts = true; smbutton.label = "pushme!"; smbutton.setstyle("textformat", buttontextformat);
i used standard button found in components toolbox in flash. displays correctly during debug, once loaded iphone, label changed default font.
i did embed desired font through text>font embedding...
, works text field have, why not button label?
i've tried buttontextformat.embedfonts = true;
error:
1119: access of possibly undefined property embedfonts through reference static type flash.text:textformat.
any appreciated. thanks.
embedfonts property textfield class, not textformat class.
follow instructions embed , use embeded font embedding fonts components in flash
Comments
Post a Comment