# Text Field Bounding Box width

**URL:** <https://forum.kirupa.com/t/text-field-bounding-box-width/169775>\
**Category:** flash\
**Created:** [November 19, 2005, 5:03am UTC](https://forum.kirupa.com/t/text-field-bounding-box-width/169775 "2005-11-19T05:03:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![urbantruth](https://avatars.discourse-cdn.com/v4/letter/u/c77e96/32.png) [@urbantruth](https://forum.kirupa.com/u/urbantruth)\
**Post date:** [November 19, 2005, 5:03am UTC](https://forum.kirupa.com/t/text-field-bounding-box-width/169775/1 "2005-11-19T05:03:59Z")

</div>

So i looked around and couldn’t find a stright answer on this. How do i set the width of a dynamic text field and add wrapping?

stop();  
for (var i=0; i\<thisXML; i++) {  
\_root.createTextField(“Text\_Field”+i, i, i_250, 0, 0, 0);  
\_root[“Text\_Field”+i].\_width = 100;  
\_root[“Text\_Field”+i].wordWrap = true;  
\_root[“Text\_Field”+i].text = amount_;

}

should i be doing this in a textformat object?

any help would be cool.
