# createTextField twice on one movieclip not working \[AS 2.0\]

**URL:** https://forum.kirupa.com/t/createtextfield-twice-on-one-movieclip-not-working-as-2-0/210312
**Category:** flash
**Created:** [December 17, 2006, 6:37pm UTC](https://forum.kirupa.com/t/createtextfield-twice-on-one-movieclip-not-working-as-2-0/210312 "2006-12-17T18:37:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mathminded](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mathminded](https://forum.kirupa.com/u/mathminded)
#### Post date: [December 17, 2006, 6:37pm UTC](https://forum.kirupa.com/t/createtextfield-twice-on-one-movieclip-not-working-as-2-0/210312/1 "2006-12-17T18:37:50Z")

</div>

I have a movieclip that I’m trying to attach two textfields to. Here’s my current code:

```auto
_root.createEmptyMovieClip("showGrowthOver1",_root.getNextHighestDepth());
showGrowthOver1._x = 10;
showGrowthOver1._y = 550;
showGrowthOver1.createTextField("label_txt",_root.getNextHighestDepth(),0,0,200,20);
showGrowthOver1.createTextField("input_txt",_root.getNextHighestDepth(),210,0,100,20);
showGrowthOver1.input_txt.type = "input";
showGrowthOver1.input_txt.text = "1";
showGrowthOver1.label_txt.text = "Highlight Growth Greater than 1";

```

As it is, only the “input\_txt” field appears. If I comment out the line that creates the “input\_txt” field, then the other one appears. I can’t get them both to appear at the same time. Am I not allowed to include two textboxes like this or am I doing something else wrong?

-Mathminded
