# hitTest simplified - nothing works now!

**URL:** <https://forum.kirupa.com/t/hittest-simplified-nothing-works-now/135774>\
**Category:** Uncategorized\
**Created:** [January 30, 2005, 11:32am UTC](https://forum.kirupa.com/t/hittest-simplified-nothing-works-now/135774 "2005-01-30T11:32:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [January 30, 2005, 11:32am UTC](https://forum.kirupa.com/t/hittest-simplified-nothing-works-now/135774/1 "2005-01-30T11:32:20Z")

</div>

Got this code whereby you drag Mc1-3 to a mouth\_mc and the target\_mc grows - then mc1 (or whatever) dissapears. That’s the idea anyway…

```auto
 						 								 							 							 								 								 									stop()
myArray = ["mc1", "mc2", "mc3"];
finalArray = new Array();
for(a=1; a<=myArray.length; ++a){
movieToAttach = myArray[a-1]
finalArray.push(this.attachMovie(movieToAttach, movieToAttach, a*10));
this[movieToAttach]._x = a*100
this[movieToAttach]._y = 100
}

```

code attached to actions mc

```auto
onClipEvent(enterFrame) {
 for(x=0;x<finalArray.length;x++){
 var cmc = finalArray[x];
 if (_root.target.hitTest(cmc)) {
 if (_root.target._xscale < 150) {
 _root.target._xscale += 5
 _root.target._yscale += 5
 _root.mc1.removeMovieClip()
 }
 } else {
 _root.isTarget(this)
 }
 }
 }

```

Any idea how I can make this work?

[here’s the fla if that helps](http://www.ahrenfelt.co.uk/thinking/expand.fla)

Any help would be much appreciated! :look:

Yossarian
