# Problem with dynamically creating input text field with a label

**URL:** https://forum.kirupa.com/t/problem-with-dynamically-creating-input-text-field-with-a-label/191019
**Category:** Uncategorized
**Created:** [June 16, 2006, 1:42pm UTC](https://forum.kirupa.com/t/problem-with-dynamically-creating-input-text-field-with-a-label/191019 "2006-06-16T13:42:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nish](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nish](https://forum.kirupa.com/u/nish)
#### Post date: [June 16, 2006, 1:42pm UTC](https://forum.kirupa.com/t/problem-with-dynamically-creating-input-text-field-with-a-label/191019/1 "2006-06-16T13:42:33Z")

</div>

## Hi, I am trying to dynamically create a input type text field with a label. The label number increments everytime an input text box is created by a button. somebody help me with code please. I get the input OK but the label will not appear. I am a newbie to actionscript.

## var t=0 t++ \_root.createTextField(“txt1”,2,25,25,10,10); txt1.text = "Label " + t (//this is used as a Label…is this correct) txt1.autoSize = true txt1.type = “input” (// I assume this will work as text input)
