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.
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.