# AS3 how to access html text field with links inside 2 movieclips

**URL:** https://forum.kirupa.com/t/as3-how-to-access-html-text-field-with-links-inside-2-movieclips/328894
**Category:** flash
**Created:** [June 29, 2012, 2:11am UTC](https://forum.kirupa.com/t/as3-how-to-access-html-text-field-with-links-inside-2-movieclips/328894 "2012-06-29T02:11:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![corestar](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@corestar](https://forum.kirupa.com/u/corestar)
#### Post date: [June 29, 2012, 2:11am UTC](https://forum.kirupa.com/t/as3-how-to-access-html-text-field-with-links-inside-2-movieclips/328894/1 "2012-06-29T02:11:11Z")

</div>

I am a beginner and have been working since few days to get to this point. I would appreciate some help.

I have a properly formated HTML textfield(instance name: **myHTML** ) nested inside 1 movieclip: **Symbol1** which is inturn nested in movieclip: **white\_bg**  
myHTML hast links in it and needs to be inside these 2 movieclips because of animation.

I have one first empty frame this as3:

var myHTMLText:String = “\<h1\>new projects:\</h1\>”+  
"\<a href=‘[http://www.somewebsite1.html](http://www.somewebsite1.html)’\>somewebsite1\</a\>  
"+  
"\<a href=‘[http://www.somewebsite2.html](http://www.somewebsite2.html)’\>somewebsite2\</a\>  
"+  
"\<a href=‘[http://www.somewebsite3.html](http://www.somewebsite3.html)’\>somewebsite3\</a\>;

//create and initialize css  
var myCSS:StyleSheet = new StyleSheet();  
myCSS.setStyle(“h1”, {fontSize:‘13’,color:’#666666’});  
myCSS.setStyle(“a:link”, {color:’#0099CC’,textDecoration:‘none’});  
myCSS.setStyle(“a:hover”, {color:’#003366’,textDecoration:‘none’});  
myHTML.styleSheet = myCSS;  
myHTML.htmlText = myHTMLText;

I tested the movie but I get an error: “1120: Access of undefined property myHTML.” i searched many Blogs. Too complicated. Is there a simple way to click/access this textfield within these clips?
