Embedded Font downward spiral

I’ve trawled the forums and despite lots of threads I can’t find the answer to my problem.

I am using Flash 8 and publishing to Flash 6. I have an external .as file in which I am creating a text field and loading text into the field from an XML file. I have embedded a font in the library, set the link name and exported on the first frame.

The text loads and appears if I don’t set embed to true, but I can’t get the embedded font to work.

Please! Help…

here’s the code:

linkage id:- my font

////as file
var tf = new TextFormat();
tf.font = “my font”;

stage.container_mc.createTextField(“main_txt”, 601, 346, 130, 320, 179);
stage.container_mc.main_txt.setTextFormat(tf);
stage.container_mc.main_txt.embedFonts = true;
stage.container_mc.main_txt.multiline = true;
stage.container_mc.main_txt.html = true;
stage.container_mc.main_txt.wordWrap = true;