# \[F8\] Dynamic text field naming and assignments?

**URL:** https://forum.kirupa.com/t/f8-dynamic-text-field-naming-and-assignments/271390
**Category:** flash
**Created:** [September 22, 2008, 6:07pm UTC](https://forum.kirupa.com/t/f8-dynamic-text-field-naming-and-assignments/271390 "2008-09-22T18:07:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dterry](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@dterry](https://forum.kirupa.com/u/dterry)
#### Post date: [September 22, 2008, 6:07pm UTC](https://forum.kirupa.com/t/f8-dynamic-text-field-naming-and-assignments/271390/1 "2008-09-22T18:07:44Z")

</div>

Hi,

Probably a lack of knowledge on my part (no, definitely…), but how do I go about loading dynamic text fields from an array, using dynamic variable naming?

for(j=0; j\<count; j++){  
this[“contacts\_mc.nameText”+j+".text"] = inputArray[j][0];  
}

“nameText0”, “nameText1”, etc are the instance names of dynamic text fields in the contacts\_mc movie clip, which is on the root level of my timeline.

I get no return at all when tracing the target dynamic text field as trace(contacts\_mc.nameText1.text), for example. Dynamic naming examples I’ve come across don’t seem to work here - perhaps a difference in how dynamic text fields are assigned?

Thank you for any advice!
