# Dynamic input text field

**URL:** <https://forum.kirupa.com/t/dynamic-input-text-field/210753>\
**Category:** flash\
**Created:** [December 21, 2006, 7:02pm UTC](https://forum.kirupa.com/t/dynamic-input-text-field/210753 "2006-12-21T19:02:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coop](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@coop](https://forum.kirupa.com/u/coop)\
**Post date:** [December 21, 2006, 7:02pm UTC](https://forum.kirupa.com/t/dynamic-input-text-field/210753/1 "2006-12-21T19:02:52Z")

</div>

Dynamic input text field

Hi all,

This is possible to dynamically create input textfields and then style them with new textFormat something like  
[AS]  
this.createTextField(“txtBox\_txt”, 1, 50, 50, 200, 20);  
textBox = new TextFormat();  
textBox.background = true;  
textBox.backgroundColor = 0xffffff;  
textBox.bold = true;  
txtBox\_txt.setNewTextFormat(textBox);  
[/AS]  
or is it possible to use the new TextFormat object on a input text field that is manually been placed on the stage. So I create a input text field called input\_txt and then style it.  
[AS]  
textBox = new TextFormat();  
textBox.background = true;  
textBox.backgroundColor = 0xffffff;  
textBox.bold = true;  
input\_txt.setNewTextFormat(textBox);  
[/AS]
