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.