# Small problem\_urgent

**URL:** <https://forum.kirupa.com/t/small-problem-urgent/232573>\
**Category:** Uncategorized\
**Created:** [July 16, 2007, 4:53am UTC](https://forum.kirupa.com/t/small-problem-urgent/232573 "2007-07-16T04:53:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![montyT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@montyT](https://forum.kirupa.com/u/montyT)\
**Post date:** [July 16, 2007, 4:53am UTC](https://forum.kirupa.com/t/small-problem-urgent/232573/1 "2007-07-16T04:53:44Z")

</div>

hi guys i need little help.  
I am making a dynamic menus.  
Like there will be text box. which i am calling from the external text file.

What i am looking is, while loading the text from external it should auto scale the width or the movie clip. According to the text size.  
code i am using

```auto

loadText = new LoadVars();
loadText.load("external.txt");
loadText.onLoad = function() {
    menu_txt.files.text = this.name_txt;
    menu_txt.files.htmlText = this.name_txt;
    menu_txt.files.text = menu_txt.name_txt.length;
};

```

🙂
