# AS2.0 Need help accessing variables in an attached clip

**URL:** <https://forum.kirupa.com/t/as2-0-need-help-accessing-variables-in-an-attached-clip/278244>\
**Category:** Uncategorized\
**Created:** [December 24, 2008, 5:09pm UTC](https://forum.kirupa.com/t/as2-0-need-help-accessing-variables-in-an-attached-clip/278244 "2008-12-24T17:09:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michko69](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@michko69](https://forum.kirupa.com/u/michko69)\
**Post date:** [December 24, 2008, 5:09pm UTC](https://forum.kirupa.com/t/as2-0-need-help-accessing-variables-in-an-attached-clip/278244/1 "2008-12-24T17:09:51Z")

</div>

I creating several clips using the code below:  
for (i=0; i\<=5; i++) {  
var attachName = “Category”+i;  
var newName = “CategoryP”+i;  
this.createEmptyMovieClip(attachName,i);  
this[attachName].attachMovie(“CategoryPanel2”,newName,this.getNextHighestDepth());  
this[attachName].\_x = this[“Category”+(i-1)].\_x+86;

}

Inside the attached clip there is a dynamic text field with an instance name of catHdr\_Ins, variable name varCatHdr.

I cannot for the life of me reference that text field…

Any help would be greatly appreciated!

TYIA!
