# Can't create a new text field

**URL:** <https://forum.kirupa.com/t/cant-create-a-new-text-field/273526>\
**Category:** Uncategorized\
**Created:** [October 16, 2008, 2:07pm UTC](https://forum.kirupa.com/t/cant-create-a-new-text-field/273526 "2008-10-16T14:07:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxelcat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/maxelcat/32/2854_2.png) [@maxelcat](https://forum.kirupa.com/u/maxelcat)\
**Post date:** [October 16, 2008, 2:07pm UTC](https://forum.kirupa.com/t/cant-create-a-new-text-field/273526/1 "2008-10-16T14:07:25Z")

</div>

Hi

If I have this code on scene 1

```auto

this.createTextField("word_txt", 2000, 100, 100, 300, 100);
word_txt.multiline = true;
word_txt.wordWrap = true;
word_txt.border=true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
word_txt.text = "This is my first test field object text. created on scene 1";
word_txt.setTextFormat(my_fmt);

```

it works fine

But I want it on scene 2. WHen I do it doesn’t work. I have tried putting this.getNextHighestDepth() instead of 2000, and removing the this from this.create…

But nothing works

Can anybody help please

thanks

E
