# TextField nested in MovieClip Issue

**URL:** <https://forum.kirupa.com/t/textfield-nested-in-movieclip-issue/293779>\
**Category:** flash\
**Created:** [August 3, 2009, 7:26pm UTC](https://forum.kirupa.com/t/textfield-nested-in-movieclip-issue/293779 "2009-08-03T19:26:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatrixAgent1984](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@MatrixAgent1984](https://forum.kirupa.com/u/MatrixAgent1984)\
**Post date:** [August 3, 2009, 7:26pm UTC](https://forum.kirupa.com/t/textfield-nested-in-movieclip-issue/293779/1 "2009-08-03T19:26:09Z")

</div>

```auto
var tf:TextField = new TextField();
tf.text = "abc";

var mc:MovieClip = new MovieClip();
mc.addChild(tf);

trace(mc.tf.text);

```

Why does the trace statement throw me an error?
