Loading dynamic with actionscript in a frame

If I want to load dynamic text without having to press a button. I want it to load in the first frame of my movie automatically when it loads. What should I do?
What I have so far on a button is :

on (press) {
loadText = new loadVars();
loadText.load(“home.txt”);
loadText.onLoad = function() {
loadedText.html = true;
loadedText.htmlText = this.hometext;
};
}

loadText = new loadVars();
loadText.onLoad = function() {
loadedText.html = true;
loadedText.htmlText = this.hometext;
};
loadText.load(“home.txt”);

Just insert it into your first frame of your movie…

HA. That easy. I must be a dummie in flash.
Anyway , thanks alot.