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

**URL:** <https://forum.kirupa.com/t/fmx-as-change-textfield-size-with-actionscript/62371>\
**Category:** flash\
**Created:** [August 27, 2004, 8:04am UTC](https://forum.kirupa.com/t/fmx-as-change-textfield-size-with-actionscript/62371 "2004-08-27T08:04:56Z")\
**Posts on this page:** 2\
**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/62371/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

---

<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:** [August 27, 2004, 8:42am UTC](https://forum.kirupa.com/t/fmx-as-change-textfield-size-with-actionscript/62371/2 "2004-08-27T08:42:36Z")

</div>

hmm nm its working now… i am stupid 🙂
