# Setting Dynamic Text Width

**URL:** <https://forum.kirupa.com/t/setting-dynamic-text-width/313478>\
**Category:** flash\
**Created:** [August 31, 2010, 6:48pm UTC](https://forum.kirupa.com/t/setting-dynamic-text-width/313478 "2010-08-31T18:48:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thrillhou](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@Thrillhou](https://forum.kirupa.com/u/Thrillhou)\
**Post date:** [August 31, 2010, 6:48pm UTC](https://forum.kirupa.com/t/setting-dynamic-text-width/313478/1 "2010-08-31T18:48:50Z")

</div>

I’m updating an old Flash file and I’m pulling some dynamic text into a text box, but I’m having a really, really hard time trying to get it to resize the width so it always fills the box, which is 170 wide.

Does anyone have some advice?

myText.textWidth=170;  
myText.width=170;  
myText.\_width=170;

none of it seems to work.
