Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem viewing dynamically loaded HTML text

Status
Not open for further replies.

adamr1001

MIS
Jul 25, 2001
166
CA
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=&quot; 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 (&quot;Go to Macromedia's website&quot;).

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.
 
wow.

all i had to do was UNembed the font for the text box.

crazy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top