Hello all,
I have been messing around with this for awhile this evening and can’t figure it out. How can I replace text loaded from an external file with text from another external file? Using setInterval and calling the .load from a function or something?
In the example below I’m calling an external text file, could this also work with an .xml file with cycling through the children?
[AS]
var loadText:LoadVars = new LoadVars();
loadText.load(“file1”); //I’ve tried changing the file name to a variable
//various text stuff here
loadText.onData = function(src:String) {
if (src != undefined) {
testText.text = src;
} else {
trace("Could not load text file.");
}
};
[/AS]