# A Link in a Dynamically loaded text

**URL:** <https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080>\
**Category:** Uncategorized\
**Created:** [March 10, 2003, 7:05pm UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080 "2003-03-10T19:05:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![KazchiX](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@KazchiX](https://forum.kirupa.com/u/KazchiX)\
**Post date:** [March 10, 2003, 7:05pm UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/1 "2003-03-10T19:05:55Z")

</div>

Hi All,

How could I add a link within a dynamically loaded 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:** [March 10, 2003, 11:34pm UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/2 "2003-03-10T23:34:23Z")

</div>

Take a look at this tutorial, it will give you an idea on how to add a link to dynamic text.

[http://www.kirupa.com/developer/mx/newsflasher.htm](http://www.kirupa.com/developer/mx/newsflasher.htm)

---

<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:** [March 11, 2003, 12:18am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/3 "2003-03-11T00:18:40Z")

</div>

Thanks electrongeek,

I read the tutorial and realized that it’s really easy to add a link. I also chech out your website and I think the interface of your site is the coolest of all. I hope one day I could build a website as cool as yours. BTW, is there any way to add a link without using add-ons?

---

<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:** [March 11, 2003, 12:20am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/4 "2003-03-11T00:20:34Z")

</div>

Yeah, that tutorial shows you how to add a link, the add-on is just for the sliding effect I think.

Thanks for the comments by the way. =)

---

<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:** [March 11, 2003, 1:25am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/5 "2003-03-11T01:25:33Z")

</div>

ElectronGeek,

I added HTML as the tutorial says. It just display all the tags I added. What’s happening?

---

<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:** [March 11, 2003, 4:05am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/6 "2003-03-11T04:05:26Z")

</div>

Could you post your txt file here so I can see how you set it up?

---

<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:** [March 11, 2003, 6:27am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/7 "2003-03-11T06:27:00Z")

</div>

Hi ElectronGeek,

Here’s the code to load and display text file.

> loadText = new loadVars();  
> loadText.load(“images/mission.txt”);  
> loadText.load(“images/personnel.txt”);  
> //creating the loadVarsText function  
> loadText.onLoad = function() {  
> dynamicText.text = this.missionl;  
> };

and attached is the text file without html to be loaded.

---

<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:** [March 11, 2003, 6:41am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/8 "2003-03-11T06:41:43Z")

</div>

Post the text file with the html so I can see what you did wrong.

---

<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:** [March 11, 2003, 6:49pm UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/9 "2003-03-11T18:49:27Z")

</div>

Thank you again ElectronGeek,

Here is the html 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:** [March 11, 2003, 7:00pm UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/10 "2003-03-11T19:00:30Z")

</div>

I’m at work right now so I didn’t look through the text file thoroughly, but it seems correct. I’ll look at it more carefully when I get home later.

For now, make sure that your textbox has the “render text as HTML” feature turned on. You can do this by clicking on your textbox to select it, open your properties panel and click on the “render text as HTML” button. Try that and see if it works. I also attached an image to show you where that button is, hopefully it will help. =)

---

<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:** [March 11, 2003, 7:39pm UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/11 "2003-03-11T19:39:00Z")

</div>

Thanks ElectronGeek,

I’m also at work now and this is what my boss had me to do. Well, I hope I could finish this by the end of this month. I’ll strugling little longer till you get home.

---

<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:** [March 12, 2003, 7:31am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/12 "2003-03-12T07:31:03Z")

</div>

Hi electrongeek,

I still couldnt figure it out. Have you looked my text file yet?

---

<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:** [March 12, 2003, 7:39am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/13 "2003-03-12T07:39:53Z")

</div>

```php
loadText = new loadVars();
loadText.load("images/mission.txt");
loadText.load("images/personnel.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
dynamicText.html = true;
dynamicText.htmlText = this.missionl;
};

```

First render dynamicText as html true.

Then be sure to tell it to not read .text, but .htmlText. Therefore rendering the incoming html font formatting tags.

---

<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:** [March 12, 2003, 7:45am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/14 "2003-03-12T07:45:37Z")

</div>

KazchiX, you had some errors in your text file and I fixed them. I tested it and it works so try it. =)

Sorry for the wait, I was doing my homework. :-\

---

<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:** [March 12, 2003, 8:04am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/15 "2003-03-12T08:04:34Z")

</div>

ElectronGeek,

So what was wrong with my text? It all looks same to me.

---

<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:** [March 12, 2003, 8:40am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/16 "2003-03-12T08:40:19Z")

</div>

The most noticable problem was that in your URL, you were missing the http:// to your link.

The other minor problem is that you were missing these tags:

```php
<u> </u>

```

Those create the underline on your link which isn’t really important but it will make your link stand out.

Did you get it to work? I tested it on my comp and the text file works.

---

<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:** [March 12, 2003, 9:17am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/17 "2003-03-12T09:17:43Z")

</div>

Thank you ElectronGeek,

It finally worked. I still have some tiny problem with font tag but was able to add link to my website. You are very kind man. Here’s one last question. Is there any reference that shows which tag I can use and cant?

What part of CA are you at?

---

<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:** [March 12, 2003, 9:23am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/18 "2003-03-12T09:23:32Z")

</div>

Here’s one that is a useful reference for HTML tags for flash.

[http://www.macromedia.com/support/flash/ts/documents/htmltext.htm](http://www.macromedia.com/support/flash/ts/documents/htmltext.htm)

I’m from orange county and you? =)

---

<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:** [March 12, 2003, 9:30am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/19 "2003-03-12T09:30:24Z")

</div>

Thank you ElectronGeek,

I guess my question is endless. Can dynamic text field be a symbol and still be accessible?  
I asked almost same question on different thread so if you are interested or know the answer, please drop a line or two. BTW, I’m from Davis. I work at the animal lab here. I think I’m going to bed now. Thank you so much for today. Hopefully see you tomorrow too.

---

<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:** [March 12, 2003, 9:35am UTC](https://forum.kirupa.com/t/a-link-in-a-dynamically-loaded-text/15080/20 "2003-03-12T09:35:02Z")

</div>

A dynamic text field could be a symbol and still work, but if you’re planning on tweening it then there could be problems.
