шрифт запихал в библиотеку, вот скрин
дальше:
Следует установить для свойства embedFonts экземпляра TextField значение true.
установил:
Код: Выделить всё
var tf2:TextField = new TextField(); tf2.x = 20; tf2.y = 35; tf2.width = 425; tf2.embedFonts = true; tf2.text = "asdads";
создал, назначил и применил:
Код: Выделить всё
var format2:TextFormat = new TextFormat();format2.fontFamily = "bet"; tf2.setTextFormat(format2); addChild(tf2);
Scene 1, Layer 'Layer 1', Frame 1, Line 7 1119: Access of possibly undefined property fontFamily through a reference with static type flash.text:TextFormat.
как мне внедрить шрифт?