# Array troubles

**URL:** https://forum.kirupa.com/t/array-troubles/156385
**Category:** flash
**Created:** [July 25, 2005, 3:11pm UTC](https://forum.kirupa.com/t/array-troubles/156385 "2005-07-25T15:11:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![craigxb](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@craigxb](https://forum.kirupa.com/u/craigxb)
#### Post date: [July 25, 2005, 3:11pm UTC](https://forum.kirupa.com/t/array-troubles/156385/1 "2005-07-25T15:11:24Z")

</div>

Can someone tell me what’s wrong with this actionscript. I’m trying to create an array and then populate some text fields with the values in the array.

var navText:Array = new Array(“What We’re About”, “Quality and Delivery”, “Certifications”, “Samples”, “New Products”);

for (i=0; i\<navText.length; i++) {  
var elementName:String = “element”+_+"\_mc";  
elementName.element\_txt.text = navText_;

}

When I test the movie, I get the following error:

“There is no property with the name ‘element\_txt’.”
