# TextField Object - Not changing Width & Height

**URL:** <https://forum.kirupa.com/t/textfield-object-not-changing-width-height/119945>\
**Category:** Uncategorized\
**Created:** [August 19, 2004, 11:42am UTC](https://forum.kirupa.com/t/textfield-object-not-changing-width-height/119945 "2004-08-19T11:42:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pup\_100](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pup\_100](https://forum.kirupa.com/u/Pup_100)\
**Post date:** [August 19, 2004, 11:42am UTC](https://forum.kirupa.com/t/textfield-object-not-changing-width-height/119945/1 "2004-08-19T11:42:08Z")

</div>

[font=Times New Roman]I’d been doing a bit of work with the “TextField” object to dynamically change the appearance of a text field at runtime. [/font]

[font=Times New Roman] [/font]

[font=Times New Roman]Having manually created & named my dynamic text field instance I then put the following script in the 10th frame & sat expectantly waiting for the appearance of the field to change when it reached the 10th frame. [/font]  
[font=Times New Roman][/font]  
[font=Times New Roman]Everything did change apart from the “width & height” which stayed exactly the same as when I had manually created the field during authoring. [/font]  
[font=Times New Roman] [/font]

[font=Times New Roman]Any help please [/font]

[font=Times New Roman] [/font]

[font=Times New Roman]stop();[/font]

[font=Times New Roman]my\_txt.border=true;[/font]

[font=Times New Roman]my\_txt.textHeight=800;[/font]

[font=Times New Roman]my\_txt.textWidth=1000;[/font]

[font=Times New Roman]my\_txt.background=true;[/font]

[font=Times New Roman]my\_txt.backgroundColor=0xEC429E;[/font]

[font=‘Times New Roman’]my\_txt.type=“dynamic”; [/font]

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 19, 2004, 10:56pm UTC](https://forum.kirupa.com/t/textfield-object-not-changing-width-height/119945/2 "2004-08-19T22:56:13Z")

</div>

strange… i hadnt noticed the _textWidth_ property until now…  
to solve, switch in the properties _.\_width_ and _.\_height_

in the meantime ill try and investigate a little into the uses of _textWidth_ for you… if ne1 can beat me 2 it tho, fell free 🙂

Prophet.

---

<div class="post-metadata">

**Author:** ![Pup\_100](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pup\_100](https://forum.kirupa.com/u/Pup_100)\
**Post date:** [August 20, 2004, 9:29am UTC](https://forum.kirupa.com/t/textfield-object-not-changing-width-height/119945/3 "2004-08-20T09:29:08Z")

</div>

Thank you Sir Prophet - I have a knack of finding skeletons in Flash’s cupboards!

From what I can find out it, should work as mentioned above, but doesn’t.

Macromedia’s own documentation on it is very sketchy. I think you can only really use it as a “Read Only” property.
