
Код AS3:
package
{
import flash.text.Font;
import flash.text.TextFormat;
public function Main():void {
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void {
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
stage.scaleMode = "noScale";
stage.align = "TL"
getXML("content.xml"); // загружаем XML c данными
}
private function getXML(URL:String):void { initBoldFont(); }
function initBoldFont():void {
var embeddedFont:Font = new MyFont();
var textFormat:TextFormat = new TextFormat();
textFormat.font = embeddedFont.MyriadPro;
textFormat.size = 14;
}
}

Код:
F:\D_Data(J)\JJJJJJOOOOOBBBBB\Blisspoint corporate website\BlisspointSite\src\Main.as(123): col: 33 Error: Call to a possibly undefined method MyFont.
var embeddedFont:Font = new MyFont();
^
F:\D_Data(J)\JJJJJJOOOOOBBBBB\Blisspoint corporate website\BlisspointSite\src\Main.as(125): col: 36 Error: Access of possibly undefined property MyriadPro through a reference with static type flash.text:Font.
textFormat.font = embeddedFont.MyriadPro;
^
Build halted with errors (fcsh).
Почему не работает?
P.S. Код initBoldFont() брался из adobe help