PDA

View Full Version : Expanding Height on a dynamic text box ????


ruddiger52
05-05-2005, 10:17 PM
I am trying to get a dynamic text box, with a fixed width, to automatically expand its height to accomodate the amount of content being loaded. Is this possible. It seems like it should be a really simple thing.

Please help
Thank you

oldnewbie
05-05-2005, 10:22 PM
TextField.autoSize

Availability


Flash Player 6.

Usage


TextField.autoSize
Description


Property; controls automatic sizing and alignment of text fields. If the value of autosize is "none", the text field behaves normally and does not automatically resize or align to match the text. If the value is "left", the text field expands or contracts its right and bottom sides to fit all contained text. The left and top sides remain at the same positions. If the value of autosize is "center", the text field auto-sizes, but the horizontal center of the text field stays anchored at the text field's original horizontal center position. The bottom side still expands to fit all contained text. If the value of autosize is "right", the text field auto-sizes; but the left and bottom sides expand or contract. The top and right side remain in the same positions. When setting the autoSize property, true is a synonym for "left" and false is a synonym for "none".

Example


The following sets the autosize property of the text field textField2 to "center".

textField2.autosize = "center";

ruddiger52
06-21-2005, 09:05 PM
awesome thanks!!