Small problem_urgent

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

loadText = new LoadVars();
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;