PDA

View Full Version : Loading dynamic with actionscript in a frame



KIOD
February 15th, 2003, 02:09 PM
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;
};
}

h88
February 15th, 2003, 02:13 PM
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..

KIOD
February 15th, 2003, 02:25 PM
HA. That easy. I must be a dummie in flash.
Anyway , thanks alot.