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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with dynamic text

Status
Not open for further replies.

mike101

Programmer
Jul 20, 2001
169
US
Oldnewbie, I sent you the file with the problem, it is loading the variables from the news.txt file but it is not displaying it for some reason. I triple checked my variable setup, but can't find the problem. I think I'm missing something stupid, but I just can't find it. Thanks.
 
Guess you haven't embedded the font right? Regards,

oldman3.gif
 
I thought I did, I keep forgetting to do that. This is gonna be repetitive, but how do I do it? I never got it to work right. Thanks. Sorry bout my stupid mistakes, I just never got embed to work.
 
Well that doesn't seem to be important here... But you have several other problems.

First one is no pictures in a text file! If you want to display pictures you'll have to use a scrollpane.

Second your synxtax is quite "sloppy", if you'll permit me to say so!

Once again you have left an incorrect variable name...
You've left var1 in there
This should be your script:

loadVarsText = new loadVars();
loadVarsText.load("news.txt");
loadVarsText.onLoad = function (success){
if (success){
//trace ("Done loading!");
news.html = true;
news.htmlText = this.news_txt;
}else{
//trace ("Not loaded!");
}
};

Next, allways start this with a standard font not BOLD, with the selectable tab (Ab) unchecked. When the text appears, you can then start playing around with features.

Try it out with the "Verdana" font with Bold (B) unchecked, and the corrected script above, to see it the text now appears.

Won't go into scrollpane stuff, until you get this simple text going. It's 20 times as complicated. Regards,

oldman3.gif
 
I got all of that to work. Can you explain more about the scrollpane stuff? Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top