# TextInput not showing on Stage

**URL:** <https://forum.kirupa.com/t/textinput-not-showing-on-stage/216419>\
**Category:** flash\
**Created:** [February 16, 2007, 7:16am UTC](https://forum.kirupa.com/t/textinput-not-showing-on-stage/216419 "2007-02-16T07:16:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dougl](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dougl](https://forum.kirupa.com/u/dougl)\
**Post date:** [February 16, 2007, 7:16am UTC](https://forum.kirupa.com/t/textinput-not-showing-on-stage/216419/1 "2007-02-16T07:16:06Z")

</div>

Any Ideas on what I’m missing here. It seems so simple. The trace returns “undefined”.  
Thanks

import mx.controls.TextInput;  
import mx.controls.TextArea;

```
// set style for all component text
//
_global.style.setStyle("fontFamily", "futuraLight");
_global.style.setStyle("fontSize", 9);
_global.style.setStyle("color", 0x000000);
_global.style.setStyle("embedFonts", true);

var id:Number = this.getNextHighestDepth();
this.createClassObject(TextInput, "inputName", id);
this.inputName.setSize(300, 20);
this.inputName._x = 200;
this.inputName._y = 200;
this.inputName._visible = true;

trace("inputName xPos = "+this.inputName._x);
trace("inputName yPos = "+this.inputName._y);
```
