# Problems with ""\_root.TargetMC1.Target"+i"

**URL:** <https://forum.kirupa.com/t/problems-with--root-targetmc1-target-i/179145>\
**Category:** Uncategorized\
**Created:** [February 16, 2006, 11:49pm UTC](https://forum.kirupa.com/t/problems-with--root-targetmc1-target-i/179145 "2006-02-16T23:49:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tattered](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tattered](https://forum.kirupa.com/u/Tattered)\
**Post date:** [February 16, 2006, 11:49pm UTC](https://forum.kirupa.com/t/problems-with--root-targetmc1-target-i/179145/1 "2006-02-16T23:49:25Z")

</div>

Ok I am running into a small problem, I dont understand why this doesnt work at all. When I done a trace it called it back as being false. Here is my code.

```auto

onClipEvent (load) {
  score = 0;
}
onClipEvent (enterFrame) {
  this.onPress = function() {
    for (i=0; i<=8; i++) {
        if (this, hitTest(eval("_root.TargetMC1.Target"+i))) {
	  this[eval("_root.TargetMC1.Target"+i)]._visible = false;
        }
      }
   }
}

```

I am new to the eval function, so I do have my head fully around it yet.
