Adding internal links to dynamic text

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!