# Adding internal links to dynamic text

**URL:** <https://forum.kirupa.com/t/adding-internal-links-to-dynamic-text/261355>\
**Category:** flash\
**Created:** [May 26, 2008, 9:01pm UTC](https://forum.kirupa.com/t/adding-internal-links-to-dynamic-text/261355 "2008-05-26T21:01:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanor](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nanor](https://forum.kirupa.com/u/nanor)\
**Post date:** [May 26, 2008, 9:01pm UTC](https://forum.kirupa.com/t/adding-internal-links-to-dynamic-text/261355/1 "2008-05-26T21:01:23Z")

</div>

Hey,

I’m building an application in as3 that requires text to be taken from xml and placed into a navigation bar with a link that will change the text in another dynamic text field when clicked.

So heres what has to happen…

1.User clicks on a UILoader item in the main navigation to go to a section

- at this point an event variable is passed through the UILoader.name property  
-this is all working great

2.Based on the value of event.target.name, text is called from the xml and output into a navigational subsection – again this is working ok… im using dynamic text fields to display the text

1. Ok, heres where im getting caught, I need to be able to make the text in the dynamic fields link so that it can pass a variable to another part of the script so that another dynamic text field will know what to display.

I have tried dynamically creating a new textField for each each entry with each one contained in a separate movieclip so i can pass the variable that is required to link the text in the .name property of the movieclip but because the textFields all have the same name, i cant remove them to be replaced when another section is chosen.

I dont want to post the script because its huge. I hope someone can help me based on what ive said.

Many thanks!
