# When I create Instances through a loop how do I address them?

**URL:** <https://forum.kirupa.com/t/when-i-create-instances-through-a-loop-how-do-i-address-them/287256>\
**Category:** flash\
**Created:** [April 28, 2009, 7:11pm UTC](https://forum.kirupa.com/t/when-i-create-instances-through-a-loop-how-do-i-address-them/287256 "2009-04-28T19:11:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sketchbookshark](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@Sketchbookshark](https://forum.kirupa.com/u/Sketchbookshark)\
**Post date:** [April 28, 2009, 7:11pm UTC](https://forum.kirupa.com/t/when-i-create-instances-through-a-loop-how-do-i-address-them/287256/1 "2009-04-28T19:11:09Z")

</div>

Hi,

I am trying to create TextField Instances for a crossword puzzle in Flash through a loop and then address them later how do I do this. My Code:

for (var i=0, i\<lettersArray.length, i++) {  
var a:TextField = newTextField;  
//someformatting here like :a.x=i\*10; etc.  
addChild(a);  
}

now I want to say:

if (_specificTextbox_.text=correctAnswerLetterArray[_someIndexNumber_]){  
\_global.Points += 1}

Thanks in advance for looking at my post. :thumb:
