# Please help with clickable text in a dynamic text field

**URL:** <https://forum.kirupa.com/t/please-help-with-clickable-text-in-a-dynamic-text-field/327193>\
**Category:** Uncategorized\
**Created:** [February 12, 2012, 9:57am UTC](https://forum.kirupa.com/t/please-help-with-clickable-text-in-a-dynamic-text-field/327193 "2012-02-12T09:57:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![subtlefly](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@subtlefly](https://forum.kirupa.com/u/subtlefly)\
**Post date:** [February 12, 2012, 9:57am UTC](https://forum.kirupa.com/t/please-help-with-clickable-text-in-a-dynamic-text-field/327193/1 "2012-02-12T09:57:48Z")

</div>

Hi all,  
I know I am dumb but I just can’t work out how to make the examples you have here work!  
please help!  
I have a dynamic text field. Instance name wordDEF  
I have variables with different word definitions  
I have a function on a button that changes the variables.  
What I want to know is… can I have a user spot a word in a definition that they don’t know and click on that word if I already have another definition written with a variable for it …

so here is my code- please don’t hurt yourself laughing  
Object(this).promotions\_def.addEventListener(MouseEvent.CLICK, showpromotions);  
function showpromotions(event:MouseEvent):void {

ans1=def5;  
ans2=w5;  
showdefinitions();

}  
the word advertising is in the definition for promotions, and I have a set of variables for advertising.  
Can I make the word advertising which is in the def5 variable clickable when it comes into the wordDEF dynamic text box and then have a function that changes ans1 and ans2  
Sorry for being such a dufus, I really need (and appreciate) your help!  
cheers  
sub
