mistahdru
August 7th, 2003, 06:15 PM
I have the following code:
this.createTextField ("imageText",2,95,0,390,96);
imageText.multiline = true;
imageText.wordWrap = true;
imageText.autoSize = true;
//imageText.embedFonts = true;
imageText.html = true;
imageText.htmlText = text; // variable loaded earlier in script....
imageText.selectable = true;
imageTextFormat = new TextFormat();
imageTextFormat.color = 0xCA9E1D;
imageTextFormat.size = 16;
imageTextFormat.font = "Sabon RomanSC";
imageText.setTextFormat(imageTextFormat);
//imageText.embedFonts = true;
trace(imageText.text);
The problem:
If I uncomment either of the imageText.embedFonts lines, my text will disappear... but the trace(imageText.text); will still return the correct contents. It's as though embedFonts causes the textField to disappear.
Possibly related, (but maybe not), is the fact that the vertical positioning of the font is off. Even though I create the textField at Y = 0, the text writes somewhere around Y = 10. I suspect this is something else, but I thought I'd add it just in case.
Any help with either (or both) problems would be fabulous. Thanks,
Drew
this.createTextField ("imageText",2,95,0,390,96);
imageText.multiline = true;
imageText.wordWrap = true;
imageText.autoSize = true;
//imageText.embedFonts = true;
imageText.html = true;
imageText.htmlText = text; // variable loaded earlier in script....
imageText.selectable = true;
imageTextFormat = new TextFormat();
imageTextFormat.color = 0xCA9E1D;
imageTextFormat.size = 16;
imageTextFormat.font = "Sabon RomanSC";
imageText.setTextFormat(imageTextFormat);
//imageText.embedFonts = true;
trace(imageText.text);
The problem:
If I uncomment either of the imageText.embedFonts lines, my text will disappear... but the trace(imageText.text); will still return the correct contents. It's as though embedFonts causes the textField to disappear.
Possibly related, (but maybe not), is the fact that the vertical positioning of the font is off. Even though I create the textField at Y = 0, the text writes somewhere around Y = 10. I suspect this is something else, but I thought I'd add it just in case.
Any help with either (or both) problems would be fabulous. Thanks,
Drew