Hi!
I’m still a newbee on actionscript so I hope u guys can help me out.
I’m trying to load som external text width loadVars. everything’s working just fine with the example below, but i want to loop out da ****…
var loadText:LoadVars = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
txt1.text = loadText.txt1;
txt2.text = loadText.txt2;
} else {
trace(“ingen text laddades!”);
}
};
loadText.load(“texter.txt”);
And I want to do something like this…
var loadText:LoadVars = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
for (i=1; i<=4; i++) {
ref = “txt”+i;
_root[ref].text = [“loadText.”+ref];
}
} else {
trace(“ingen text laddades!”);
}
};
loadText.load(“texter.txt”);