I have a weird problem with my textfields…
They are not displaying at all. I’ve tried embedding/unembedding the fonts, removing all animations, but I can’t see anything.
What’s weird is, a few days ago it was working fine. Then I changed some of the code a bit, then changed it back. AFAIK, my code now is just the same a few days ago.
[Embed(systemFont='Arial', fontName='spArial', mimeType='application/x-font')]
public static var ArialFont:Class;
//...
private function initFormat(font:String = "spArial", size:Number = 16, color:uint = 0x33CCFF, bold:Boolean = false):void {
_format = new TextFormat(font, size, color, bold);
}
private function initTextfield():void {
_textfield = new TextField();
_textfield.defaultTextFormat = _format;
_textfield.selectable = false;
_textfield.text = _status;
_textfield.multiline = true;
_textfield.width = textboxWidth - 10;
_textfield.wordWrap = true;
_textfield.embedFonts = true;
addChild(_textfield);
}