PDA

View Full Version : dunamically resize textfileds to size of imported text


james bluetouch
03-26-2004, 03:08 AM
I am using a scroller to scroll through a 'long' product description on a dynamic textfield under a mask. I am using the _y property with a scrollbar and up / down buttons. How do i resize the textfield to take on the size of the text imported through an xml feed?? I currently have to set it manually which obviously doesn't work for dynamic text. ( i am using flash 6 btw)..

Many thanks

James

Filipinho
03-26-2004, 03:33 AM
Hi!

You can do it by writing.

myTextField.autoSize=true

If the textField is single line, the textField will change in width, if you use multline then the textfField will change in heigth.