# Resizing the height of a dynamic text box

**URL:** <https://forum.kirupa.com/t/resizing-the-height-of-a-dynamic-text-box/233110>\
**Category:** Uncategorized\
**Created:** [July 20, 2007, 5:38am UTC](https://forum.kirupa.com/t/resizing-the-height-of-a-dynamic-text-box/233110 "2007-07-20T05:38:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulletz](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@bulletz](https://forum.kirupa.com/u/bulletz)\
**Post date:** [July 20, 2007, 5:38am UTC](https://forum.kirupa.com/t/resizing-the-height-of-a-dynamic-text-box/233110/1 "2007-07-20T05:38:16Z")

</div>

hello:  
i’m trying to load a text file in a dynamic text box.

i have this code which loads the text to the textbox.  
text file is 3 paragraphs long. i want it all to show in the textbox  
problem is, it only shows the first line. but when i tried resizing my textbox manually  
it shows more text. i want the textbox to resize automatically depending on the  
length of the textfile loaded.

```auto

myData = new LoadVars();
myData.onLoad = function() {
 
 target_mc = contentmain_mc.createEmptyMovieClip("list_mc",1); 
 news_mc = target_mc.attachMovie("newscont_mc", "newscont_mc", 1);
 
 news_mc.news_text.styleSheet = format; // CSS formatting
 news_mc.news_text.html = true;
 news_mc.news_text.htmlText = this.myNews;
};
myData.load("newsxml/test.txt");
 

```
