hi.
i have successfully loaded regular text from text files in to a dynamic text box (equipped with a scroll-bar as well)-
...but now i'd like to load text rendered as HTML.
i got resources from macromedia.com - and i am getting buggy results.
here is the code i am using to import the text
___________________
loadVarsText = new loadVars();
loadVarsText.load("pressleft.txt"
;
loadVarsText.onLoad = function(success) {
if (success) {
scroller.html = true;
scroller.htmlText = this.var1;
}
};
___________________
here are the contents of the text file "pressleft.txt":
__________________________
var1=
This is a test
Go to <A HREF=" website</A>
__________________________
when i view the SWF, no text appears, but when i press CTRL-A (select all) in the space where the text should be, then COPY, then paste in to another textfile i get the proper results ("Go to Macromedia's website"
.
however, the text is not viewable, the hyperlink is not clickable, and when i tried it with a larger text file the scrolbar did not work.
wierd.
any help is much apreciated.
i have successfully loaded regular text from text files in to a dynamic text box (equipped with a scroll-bar as well)-
...but now i'd like to load text rendered as HTML.
i got resources from macromedia.com - and i am getting buggy results.
here is the code i am using to import the text
___________________
loadVarsText = new loadVars();
loadVarsText.load("pressleft.txt"
loadVarsText.onLoad = function(success) {
if (success) {
scroller.html = true;
scroller.htmlText = this.var1;
}
};
___________________
here are the contents of the text file "pressleft.txt":
__________________________
var1=
This is a test
Go to <A HREF=" website</A>
__________________________
when i view the SWF, no text appears, but when i press CTRL-A (select all) in the space where the text should be, then COPY, then paste in to another textfile i get the proper results ("Go to Macromedia's website"
however, the text is not viewable, the hyperlink is not clickable, and when i tried it with a larger text file the scrolbar did not work.
wierd.
any help is much apreciated.