Neo-Geo
August 2nd, 2003, 11:19 AM
i used this AS to load external text (load on its own)
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
loadTexts.onLoad = function() {
textBox.text = this.speaknote;
};
how can i modify this AS so that it will load when i press a button
i try to change it to this
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
buttonToLoad.onPress = function() {
textBox.text = this.speaknote;
};
whats wrong with this AS, why it wont work?
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
loadTexts.onLoad = function() {
textBox.text = this.speaknote;
};
how can i modify this AS so that it will load when i press a button
i try to change it to this
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
buttonToLoad.onPress = function() {
textBox.text = this.speaknote;
};
whats wrong with this AS, why it wont work?