TextField Object - Not changing Width & Height

[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]

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 :slight_smile:

Prophet.

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.