# \[FMX\]\[AS\] Change Textfield Size with actionscript

**URL:** <https://forum.kirupa.com/t/fmx-as-change-textfield-size-with-actionscript/120770>\
**Category:** Uncategorized\
**Created:** [August 27, 2004, 8:04am UTC](https://forum.kirupa.com/t/fmx-as-change-textfield-size-with-actionscript/120770 "2004-08-27T08:04:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Hiro](https://forum.kirupa.com/u/Hiro)\
**Post date:** [August 27, 2004, 8:04am UTC](https://forum.kirupa.com/t/fmx-as-change-textfield-size-with-actionscript/120770/1 "2004-08-27T08:04:56Z")

</div>

I have a textfield which loads dynamic text. After this text is loaded i want to be able to change the size/position of the field with the click of a button. (To a set value, not for the user to drag bigger etc).

i have tried

\_root.myTextbox.\_width = 400; but it doesnt work

thanks
