PDA

View Full Version : HTML Links


Schwalbach
04-13-2003, 06:32 PM
I was just wondering how do I get links in an external scroller..if that isn't possible, could someone point me to a tutorial for putting links in a regular scroller?

tost
04-13-2003, 06:50 PM
how do you mean internal/external?

Schwalbach
04-13-2003, 06:53 PM
Ok, I've already got an external set up with the scrollbar component. I can make it read the text and everything already. I just want to put links in the .txt file if I can. If I can't do that, then can someone just point me to a way to make a regular internal scroller that I can put text in..but if it is possible I would like to learn the external way first.

tost
04-13-2003, 07:06 PM
you can, but you have to urlencode the text in the textfile.
if your link would be this:
<a href ="http://www.domain.com" target="blank"><u>www.domain.com</u></a>
the urlencoded version would be
%3Ca%20href%20=%22http://www.domain.com%22%20target=%22blank%22%3E%3Cu%3Eww w.domain.com%3C/u%3E%3C/a%3E

more info here, the second link is a page with a utility to convert your vars to urlencoded format
http://www.macromedia.com/support/flash/ts/documents/htmltext.htm
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

hope this helps :)
tost

Schwalbach
04-13-2003, 07:14 PM
Ok I tried out your thing with your domain name too..

Here's what I got in my .txt file

links=Helpful
Swish-Tutorials
%3Ca%20href%20=%22http://www.domain.com%22%20target=%22blank%22%3E%3Cu%3Eww w.domain.com%3C/u%3E%3C/a%3E

Here is what comes out on the flash

Helpful

Swish-Tutorials

<a href ="http://www.domain.com" target="blank"><u>www.domain.com</u></a>

I just want it to say www.domain.com and be a link..help plz

tost
04-13-2003, 07:26 PM
the textfield in flash should be set to html: select the textfield on the scene and click on the button with this: <> in the property pane. this makes the selected textfield process html-tags.
should do the trick :)
tost

Schwalbach
04-13-2003, 07:39 PM
It's already like that.

tost
04-13-2003, 08:39 PM
and how do you assign the text to the textfield? is the name of the variable in the property pane for the textfield or do you assign it with code like this?:
theTextField.text="...";
if so, try this code instead:
theTextField.htmlText="...";
if not, i'm out of ideas :)
greetz
tost