Hi eveyrone,
I wonder has anyone gone through the “Applying CSS to Externally Loaded Text” tutorial? I have not realised how success and loaded variables in the above code take values. they are not defined anywhere else apart from these functions.
format.onLoad = function(**loaded**) {
if (**loaded**) {
output.styleSheet = format;
myLoadVar = new LoadVars();
myLoadVar.load("news5.txt");
myLoadVar.onLoad = function(**success**) {
if (**success ** == true) {
output.variable = "txt";
output.htmlText = myLoadVar.txt;
}
};
} else {
output.text = "Error loading CSS file!";
}
};
Thanks a lot