# Size of textbox

**URL:** <https://forum.kirupa.com/t/size-of-textbox/30105>\
**Category:** Uncategorized\
**Created:** [September 4, 2003, 12:28am UTC](https://forum.kirupa.com/t/size-of-textbox/30105 "2003-09-04T00:28:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzman121](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jazzman121/32/127_2.png) [@jazzman121](https://forum.kirupa.com/u/jazzman121)\
**Post date:** [September 4, 2003, 12:28am UTC](https://forum.kirupa.com/t/size-of-textbox/30105/1 "2003-09-04T00:28:40Z")

</div>

how do i find out the width of a text box and set a variable with that value??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2003, 12:30am UTC](https://forum.kirupa.com/t/size-of-textbox/30105/2 "2003-09-04T00:30:33Z")

</div>

You use the \_width property. 😉  
[AS]var myVar = myTextField.\_width;[/AS]  
[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary114.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary114.html)
