PDA

View Full Version : Dynamic Text and external file


Renidrag
03-19-2005, 05:11 AM
I have a Dynamic text on my movie that i want to scroll from bottom to top, I have all of this done fine
I want to load data from an external file into this text field this works fine.

but

depending on how big i drag the size of the dynamic text field, it only shows what fits in it.

so

How do i make the size in height auto resize to the amount of text that will very in the external text file?

Any Suggestions, Thanks in Advance.

oldnewbie
03-19-2005, 06:28 AM
http://www.macromedia.com/support/flash/ts/documents/scrolling_text_mx.htm

Renidrag
03-24-2005, 06:32 AM
Still working on this problem, I cannot resize the textbox or have it auto resize to the dynamic text that is loaded from the text file.

Any help or suggestions would be greatl appreciated.

Renidrag
03-24-2005, 06:37 AM
I don't want to use the scroll feature, unless someone can tell me how to set it up to smooth scroll, I set it up to auto scroll but it was hard to read as it jumped up line to line not pixel to pixel.

Kraken
03-24-2005, 07:49 AM
you can set the autoSize property of the textfield:
my_txt.autoSize = "left";

Now, if the textfield has multiline = true and wordWrap = true then the textfield will resize its bottom edge to contain the entire loaded text. If wordWrap = false then the right side will also resize.

If you want to scroll by pixels, use the scrollpane component and put your textfield inside a movieclip.