# Quick Question about Arrays

**URL:** <https://forum.kirupa.com/t/quick-question-about-arrays/217003>\
**Category:** flash\
**Created:** [February 22, 2007, 7:39am UTC](https://forum.kirupa.com/t/quick-question-about-arrays/217003 "2007-02-22T07:39:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rizzex123](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@rizzex123](https://forum.kirupa.com/u/rizzex123)\
**Post date:** [February 22, 2007, 7:39am UTC](https://forum.kirupa.com/t/quick-question-about-arrays/217003/1 "2007-02-22T07:39:38Z")

</div>

Ok - so I make an object I call a “dot” using this method:

**myDot = new hitDot(stageMC, “Zeus”, 300, 300); //makes a dot**

**trace(myDot.myMC.\_name);**

and this properly traces the name “Zeus.” Works perfect.

Now, when I put my dots into an array:

\*\*for(var i:Number = 0; i \< 30; i++){

hitPoint\* = new hitDot(stageMC, “Zeus” + i , (i\*20), (i \* 30));\*\*

**}**

and ask for the name:

**trace(hitPoint[5].myMC.\_name);**

it returns “undefined.” Any idea why? All 30 dots are created perfectly the way that I want them - but for some reason the name of the movie clip is not being saved in my array.
