Desmo
02-27-2003, 04:23 PM
OK... I've been beating myself silly trying to get a .txt file to import as HTML (need to use links) AND use the scroller component. I've tried the LoadVar, and a script from a friend that consists of:
loadVarsText = new loadVars();
loadVarsText.load("copy.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
scroller.text = this.textField;
} else {
trace("not loaded");
}
};
I can get the scroller component to work with this script, but it will not load the txt file as HTML.
I also tried to use the hyperField.html=true; at the beginning, and that doesn't import the .txt file as HTML.
Merely clicking on the HTML activation property button doesn't solve the issue either... Any ideas??? THANKS!!!
loadVarsText = new loadVars();
loadVarsText.load("copy.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
scroller.text = this.textField;
} else {
trace("not loaded");
}
};
I can get the scroller component to work with this script, but it will not load the txt file as HTML.
I also tried to use the hyperField.html=true; at the beginning, and that doesn't import the .txt file as HTML.
Merely clicking on the HTML activation property button doesn't solve the issue either... Any ideas??? THANKS!!!