# My Textfield is not working

**URL:** <https://forum.kirupa.com/t/my-textfield-is-not-working/287624>\
**Category:** Uncategorized\
**Created:** [May 4, 2009, 2:09pm UTC](https://forum.kirupa.com/t/my-textfield-is-not-working/287624 "2009-05-04T14:09:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 4, 2009, 2:09pm UTC](https://forum.kirupa.com/t/my-textfield-is-not-working/287624/1 "2009-05-04T14:09:58Z")

</div>

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.

```auto

[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);
}

```
