# Underline link from dynamic text

**URL:** <https://forum.kirupa.com/t/underline-link-from-dynamic-text/35252>\
**Category:** Uncategorized\
**Created:** [November 12, 2003, 12:32am UTC](https://forum.kirupa.com/t/underline-link-from-dynamic-text/35252 "2003-11-12T00:32:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kill\_robot\_kill](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kill_robot_kill/32/359_2.png) [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)\
**Post date:** [November 12, 2003, 12:32am UTC](https://forum.kirupa.com/t/underline-link-from-dynamic-text/35252/1 "2003-11-12T00:32:21Z")

</div>

I have a text box that will be updated by my client. I want them to be able to include links in their text, but I really don’t want to require my “not-so-computer-savy” client to have to remember to type this out everytime they need to add a link

```php
<font color="#ff0000"><a href="http://cnn.com"><u>CNN</u></a></font>

```

is there a way to simplifying this, and still have flashMX recognize 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, 2003, 8:00am UTC](https://forum.kirupa.com/t/underline-link-from-dynamic-text/35252/2 "2003-11-12T08:00:25Z")

</div>

you could make up your own easy to remember tag, something like  
\<link\>\<site\>thedomainname\</site\>The Text\</link\>

myString = myString.split("\<link\>").join("\<a").split("\<site\>").join(" href=“http://”).split("\</site\>").join(""\>\<u\>").split("\</link\>").join("\</u\>\</a\>");  
trace(myString);

And then do the little, split join, to make the proper tag for flash after the text has been loaded.  
With that you could make up a tag for images or whatever and just replace the \<site\>\</site\> with it and add a thing in the AS to parse it into the link properly. Anyway I think I am wandering now

Hope that helps,  
Shawn

---

<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, 2003, 5:48pm UTC](https://forum.kirupa.com/t/underline-link-from-dynamic-text/35252/3 "2003-11-12T17:48:43Z")

</div>

ahh, great idea, I just needed to get pointed in the right direction.
