Text files and hyperlinks

I have been told that if I import text from an external .txt file and if I want the text to be a hyperlink, I should use:

[a href=“http://www.yourlink.com”]This is a cool site[/a]

in the text file.

I am using

loadVariables (“my.txt”,_root);

to get the text into a dynamic text field.

The method of defining a hyperlink is not working.

Also is there a way to have the link underlined by adding to the text file. I could do this internally in flash but I want to have the flexibility of the external text file.

TextFieldInstanceName.html = true
TextFieldInstanceName.htmlText = variable

:slight_smile:

That will allow you to use limited HTML font formatting tags. You can use the A HREF tag, I am not sure if that underlines it, if not, use the U tag :slight_smile:

^Will that make it so you can use fonts that are only on your computer?

No, you will need to embed the font outline of the textbox to do that. (right click on textbox, open properties, press character button)