# Link with extern .txt file

**URL:** https://forum.kirupa.com/t/link-with-extern-txt-file/8040
**Category:** Uncategorized
**Created:** [November 12, 2002, 10:39pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040 "2002-11-12T22:39:44Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![RGN](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@RGN](https://forum.kirupa.com/u/RGN)
#### Post date: [November 12, 2002, 10:39pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/1 "2002-11-12T22:39:44Z")

</div>

Hi

I have a small problem. thx to your site I have learned how to use an extern .txt file in flash, but now I wonder how do I put a link (to an external website, my e-mail or an .swf file) in that .txt file?

Thx

---

<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: [November 12, 2002, 10:43pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/2 "2002-11-12T22:43:16Z")

</div>

in the text file

var1=http://www.kirupa.com  
&var2=myfile.swf  
&var3=myname@mydomain.com

or, you could do

var1=http://www.kirupa.com,myfile.swf,myname@mydomain.com

and split the values inside flash.

---

<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: [November 12, 2002, 10:43pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/3 "2002-11-12T22:43:23Z")

</div>

Assuming you are using the Scrolling Dynamically Loaded Text tutorial for MX…

Change the code given to this…

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
                scroller.html = true;
		scroller.htmlText = this.kirupatext;
};

```

Now your text will be HTML enabled and you can use HTML font formatting tags with your text such as bold, italic, underline, change of color, change of size, change of font, A HREF links and mailto: links like in HTML, etc, etc.

---

<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: [November 12, 2002, 10:47pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/4 "2002-11-12T22:47:25Z")

</div>

thx a lot guys

---

<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: [November 12, 2002, 10:50pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/5 "2002-11-12T22:50:09Z")

</div>

I think Lost’s response clarified what you were actually asking. My bad.

---

<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: [November 12, 2002, 11:04pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/6 "2002-11-12T23:04:38Z")

</div>

can any1 see what my fault is?

the actionscript:

loadText = new loadVars();  
loadText.load(“mom.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.html = true;  
scroller.htmlText = this.momtext;  
};

the textfile:

momtext=  
Name:  
Nickname: ]RGN[  
D.O.B.:  
P.O.B.:  
\<a href=\>RGN\</a\>

don’t mind the content, it’s just a try out.

Thx

---

<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: [November 12, 2002, 11:06pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/7 "2002-11-12T23:06:01Z")

</div>

there should be an ‘href:mailto…’ in front of my nick in the text…

---

<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: [November 12, 2002, 11:06pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/8 "2002-11-12T23:06:39Z")

</div>

It might be the ] [ thing :-\ Not sure.

What exactly is your problem? Not loading at all?

---

<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: [November 12, 2002, 11:08pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/9 "2002-11-12T23:08:11Z")

</div>

everything loads except for the link

---

<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: [November 12, 2002, 11:10pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/10 "2002-11-12T23:10:34Z")

</div>

u mean [mailto:hangman\_be@yahoo.com](mailto:hangman_be@yahoo.com)

---

<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: [November 12, 2002, 11:11pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/11 "2002-11-12T23:11:19Z")

</div>

I checked the source of you post…

You need to have "mailto:name@host.com" , with the quotes, not without.

Maybe that is why.

---

<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: [November 12, 2002, 11:13pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/12 "2002-11-12T23:13:05Z")

</div>

THANK YOU!

I finally got it!!!

---

<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: [November 12, 2002, 11:13pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/13 "2002-11-12T23:13:36Z")

</div>

No problem 🙂

::: assuming it was the quote problem :::

---

<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: [November 12, 2002, 11:16pm UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/14 "2002-11-12T23:16:57Z")

</div>

yes it was

---

<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: [November 13, 2002, 2:06am UTC](https://forum.kirupa.com/t/link-with-extern-txt-file/8040/15 "2002-11-13T02:06:52Z")

</div>

> 

Change the code given to this…

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
                scroller.html = true;
		scroller.htmlText = this.kirupatext;
};

```

Now your text will be HTML enabled and you can use HTML font formatting tags with your text such as bold, italic, underline, change of color, change of size, change of font, A HREF links and mailto: links like in HTML, etc, etc. \*\*

When i wanted to move from txt to html I did this a while back, it worked fine, except i had some real probs with the coding of the html, you had to be much more careful how you coded, as it didn’t like a lot of tags, and if you leave a line space in the html, it does it in the movie, surely only \< P \> or \< br \> (Without the spaces) should work ??:rambo:
