# Textfield not visible in parent Sprite

**URL:** <https://forum.kirupa.com/t/textfield-not-visible-in-parent-sprite/312184>\
**Category:** flash\
**Created:** [July 27, 2010, 5:14pm UTC](https://forum.kirupa.com/t/textfield-not-visible-in-parent-sprite/312184 "2010-07-27T17:14:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)\
**Post date:** [July 27, 2010, 5:14pm UTC](https://forum.kirupa.com/t/textfield-not-visible-in-parent-sprite/312184/1 "2010-07-27T17:14:18Z")

</div>

Given this:

```php
var container:Sprite = new Sprite();

var _myriad = new _Myriad();
var tff:TextFormat = new TextFormat(_myriad.fontName, 24);

var tf:TextField = new TextField();
tf.embedFonts = true;
tf.autoSize = TextFieldAutoSize.LEFT;
tf.text = "Hello world";
tf.setTextFormat(tff);

```

…why is it that I can see my text when I do this:

```php
addChild(tf);

```

but I can’t see my text when I do this:

```php
container.addChild(tf);

```
