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

HTML formatted text links

Status
Not open for further replies.

inker

Technical User
Jul 28, 2003
9
US
I have a bunch of dynamically loading text that is formatted with html tags for links etc, in the txt files. Everything is working great except when your over a link in one of the text fields, you do not get a 'hand'. I am afraid users will not realize that it is a link so I was hoping for either avice on how to get the 'hand' to appear.. or how to use CSS for a:hover states etc..

 
you ought to be getting the hand

make sure that when you are loading the text you are adding as html

eg

textfield.html = true;
textfield.htmltext = whatever;

 
this is what i have...

loadVarsText = new loadVars();
loadVarsText.load("news.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
scroller.html = true;
newsscroller.htmlText = this.var1
} else {
trace("not loaded");
}
};

Thats correct, right?

Its really odd, I get the hand in flash player (like when i test the movie) but not once its embedded in an HTML document.

I do get an error in my output panel.. but it hadnt caused any noticable problems.. or so i thought. Could this affect it?

**Warning** Symbol=Symbol 12 copy 3, layer=actions, frame=1:Line 1: Case-insensitive identifier 'loadVars' will obscure built-in object 'LoadVars'.
loadVarsText = new loadVars();


Thanks for your help.
 
looks ok but for some minor things

try

loadVarsText = new LoadVars();
loadVarsText.load("news.txt");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
newsscroller.html = true;
newsscroller.htmlText = this.var1
} else {
trace("not loaded");
}
};
 
well i changed all the loadVars(); to LoadVars(); and that stopped the output warnings... but when i change the rest i get these errors.
I tried it with just the first change and that unfortunately make the hand appear...

**Error** Symbol=Symbol 12 copy 3, layer=actions, frame=1:Line 4: Operator '=' must be followed by an operand
    if (success) {

**Error** Symbol=Symbol 12 copy 3, layer=actions, frame=1:Line 5: Syntax error.
        trace("done loading");

**Error** Symbol=Symbol 12 copy 3, layer=actions, frame=1:Line 6: Syntax error.
          newsscroller.html = true;


Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top