PDA

View Full Version : [FMX] Adding new html text to TF go to another line?



comicGeek
August 9th, 2003, 04:46 AM
Hello all! I been making a histroy frame (similar to the one above) where people can see where they were on the site before they came to the new section of the site. I have successfully done this using html text and ASFunction and it works perfectly. The problem is when I add a new html link into the textfield the new entry goes to a second line. I wanted it to appear in one line

ie. home > tutorials > easin menu...

the script i used to add are as follows:


on(release){
history.htmlText += "<a href='asfunction: loader,2'> Section 2</a>";
}

That code format goes to all the links in my movie but, as I said it would'nt appear in one line....

Anybody know how to do this? :-\

Thanks!

Voetsjoeba
August 9th, 2003, 05:10 AM
Well, when you set the html property of the textfield to false, you get this, all on one line: <a href='#'>home</a><a href='#'> > About</a>, so I guess the problem is somewhere with the html formatting, or with the asfunction you spoke of.

comicGeek
August 9th, 2003, 05:23 AM
That's just it you can get it in one line when if it is not html formatted.... That's basiaclly my question how to make it in one line and have it html formatted :-\

The ASFunction doesn't reformat the text. It only calls a specific function using a link in the textfield.

comicGeek
August 9th, 2003, 05:33 AM
hahahahahaha oh man I figured it out! It's very easy if you really put yourself ino it! :beam: Sorry!


on(release){
_global.best += "hahahaha"
test.htmlText = _global.best;
}

I placed a _global variable as the basis for the new text.

:trout: