Html in loading txt file

ok i need to have a txt file loaded into a dynamic textfield, with the scroll bar ui component controlling it. for some reason this is a problem :frowning: any tutorials or ideas guys? highly appreciated

tutorial here. :slight_smile:

just change the script to

loadText = new loadVars();
loadText.load("kirupa.txt");
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.kirupatext;
};

:wink:

ok but the problem is my html in my textfile is not working… this is what u see

<a href=“http://www.delsuioanlfx.com”>"I am an </a>example of text that has been loaded from a separate location on kirupa’s server.

Best of all, notice that you can scroll the contents of the text up and down by clicking on the arrows. This is a nice, useful feature that you can

i need the href to work and be hidden

<a href='http://www.delsuioanlfx.com'>I am an</a> example of text blah, blah, blah...

this is f@cked up its still not working i am going nuts

ok where in this do i put html-true

loadText = new loadVars();
loadText.load(“kirupa.txt”);
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.kirupatext;
};

Originally posted by kax

loadText = new loadVars();
loadText.load("kirupa.txt");
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.kirupatext;
};

but not necessarily… just put it before you assign the text to the TextField.

OMG thank you so much bro… i had these lines swapped

scroller.html = true;
scroller.htmlText = this.kirupatext;

**** hey thanks a bunch :slight_smile:

:stuck_out_tongue:

no problem. :wink: =)