# Text files and hyperlinks

**URL:** <https://forum.kirupa.com/t/text-files-and-hyperlinks/24815>\
**Category:** Uncategorized\
**Created:** [July 5, 2003, 8:09am UTC](https://forum.kirupa.com/t/text-files-and-hyperlinks/24815 "2003-07-05T08:09:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimw00d](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jimw00d](https://forum.kirupa.com/u/jimw00d)\
**Post date:** [July 5, 2003, 8:09am UTC](https://forum.kirupa.com/t/text-files-and-hyperlinks/24815/1 "2003-07-05T08:09:45Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 5, 2003, 8:13am UTC](https://forum.kirupa.com/t/text-files-and-hyperlinks/24815/2 "2003-07-05T08:13:27Z")

</div>

TextFieldInstanceName.html = true  
TextFieldInstanceName.htmlText = variable

🙂

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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 6, 2003, 7:53am UTC](https://forum.kirupa.com/t/text-files-and-hyperlinks/24815/3 "2003-07-06T07:53:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 6, 2003, 7:59am UTC](https://forum.kirupa.com/t/text-files-and-hyperlinks/24815/4 "2003-07-06T07:59:07Z")

</div>

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