first, you should not be using the Variable property of a textfield..

To get your text box resizing to fit the content you add, set the "autoSize" property to true in actionscript, ie

caixa_txt.autoSize=true;
caixa_txt.htmlText="<p>whatever</p>"



On Dec 27, 2005, at 12:34 PM, Jose Maria Barros wrote:

Hello all.

I have a movieclip that inside has a dynamic text box labeled
"caixa_txt" with a variable call noticias_txt.

That text box is only one line..but i choose to be multiline and with
HTML support for me to be able to style the XML nodes.

The  problem is that the movie clip dont resize the text box when i
insert new nodes in the XML file...he only shows the first node, so i
think he doenst resize the text box automatically..

The sollution ive made was make the text box with a very high height
value...to accept many nodes.. but the problem is that i have a
scrollbar that stores the total height of the movie clip and when i
dont have many news..he scrolls the movie until the end of the movie
height..

Sorry..i dont know if any of you understand sorry for bad
english....but i can send a file with an example..

Thanks in advance..
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to