# Link a word inside a dynamic text!? Not possible thru actionscript?

**URL:** <https://forum.kirupa.com/t/link-a-word-inside-a-dynamic-text-not-possible-thru-actionscript/243635>\
**Category:** flash\
**Created:** [November 9, 2007, 2:44am UTC](https://forum.kirupa.com/t/link-a-word-inside-a-dynamic-text-not-possible-thru-actionscript/243635 "2007-11-09T02:44:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![filete](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/filete/32/124_2.png) [@filete](https://forum.kirupa.com/u/filete)\
**Post date:** [November 9, 2007, 2:44am UTC](https://forum.kirupa.com/t/link-a-word-inside-a-dynamic-text-not-possible-thru-actionscript/243635/1 "2007-11-09T02:44:46Z")

</div>

Hi there!  
I am using a specific scroller buttons for this dynamic box I have  
create. So its build all with actionscript. But the text is written  
inside the box.  
The problem is that I can´t figure out how can I select one word  
of the text to be able to link it to a new site.

This kirupa tutorial about “Links in a Dynamic Text Box”:  
[http://www.kirupa.com/developer/mx/links\_dynamictextbox.htm](http://www.kirupa.com/developer/mx/links_dynamictextbox.htm)  
it seems that only works if you create a dynamic box on the stage and not thru actionscript!  
:\*(

Here is the code I am using.  
Is there any code I can add here for links to work?

```auto
this.createTextField("contentdisplay_txt", this.getNextHighestDepth(), 162, 100, 240, 310);
//
contentdisplay_txt.multiline = true;
contentdisplay_txt.wordWrap = true;
contentdisplay_txt.embedFonts = true;
//
contentFormat = new TextFormat();
contentFormat.font = "Font_1";
contentFormat.size = 15;
contentFormat.color = 0x333333;
//
contentdisplay_txt.text = aboutme_txt.text;
contentdisplay_txt.setTextFormat(contentFormat);
//Remove user input text field
aboutme_txt._x = 3000;
//Remove Scroll buttons
if (contentdisplay_txt.maxscroll<=1){
	Scroller._x = 3000;
}

```

Thanks!
