# Help needed............Linking dynamically Created TextFeilds with mouse click

**URL:** <https://forum.kirupa.com/t/help-needed-linking-dynamically-created-textfeilds-with-mouse-click/173556>\
**Category:** flash\
**Created:** [December 27, 2005, 7:25am UTC](https://forum.kirupa.com/t/help-needed-linking-dynamically-created-textfeilds-with-mouse-click/173556 "2005-12-27T07:25:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavanshinde](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@pavanshinde](https://forum.kirupa.com/u/pavanshinde)\
**Post date:** [December 27, 2005, 7:25am UTC](https://forum.kirupa.com/t/help-needed-linking-dynamically-created-textfeilds-with-mouse-click/173556/1 "2005-12-27T07:25:20Z")

</div>

Hi All

I have created some dynamic textfields. i want to put links to these textfields. i have a variable named \*\*firstname. \*\*I have used this code to create these textfields

[size=1]for(i=1 ; i \< int(mrcounter) + 1 ;i++)  
{  
var p  
p=p+25;  
fn=“fn”+i;  
var firstname  
firstname=“firstName”+i;  
createTextField(fn,i,83,80+p,200,18);  
\_root[this.fn].type = “dynamic”;  
\_root[this.fn].multiline = false;  
\_root[this.fn].wordWrap = true;  
\_root[this.fn].border = true;  
\_root[this.fn].variable = firstname;  
\_root[this.fn].selectable = true;  
\_root[this.fn].html = true;  
\_root[this.fn].htmlText ="\<A HREF=‘[http://localhost/data.asp?Record=firstname](http://localhost/data.asp?Record=firstname)’\>**[COLOR=red]firstname[/COLOR]**\</A\>";

Here the [COLOR=#ff0000] **firstname** [/COLOR][COLOR=black]is my variable and this giving me problem. i want my data to be here and i should be able to click on that data.[/COLOR]

Please can anyone help me out.

Thanks  
Pavan
