# About hitTest

**URL:** https://forum.kirupa.com/t/about-hittest/537
**Category:** Uncategorized
**Created:** [July 22, 2002, 3:55am UTC](https://forum.kirupa.com/t/about-hittest/537 "2002-07-22T03:55:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![paopei](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@paopei](https://forum.kirupa.com/u/paopei)
#### Post date: [July 22, 2002, 3:55am UTC](https://forum.kirupa.com/t/about-hittest/537/1 "2002-07-22T03:55:16Z")

</div>

i have problem about hitTest method. i have ever attached this method to a symbol, it wouldn’t work well. even it didn’t work at all.  
is there anyone can explain this.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 22, 2002, 5:23am UTC](https://forum.kirupa.com/t/about-hittest/537/2 "2002-07-22T05:23:59Z")

</div>

please explain what you’re trying to do, or attach your fla to show us. Then, we can make clearer suggestions. okey dokey?

🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 22, 2002, 6:03am UTC](https://forum.kirupa.com/t/about-hittest/537/3 "2002-07-22T06:03:24Z")

</div>

:nerd:  
i have solved it in present.  
i initially used this method  
mymovieclip.hitTest(targetmovie){  
}

after i 've read a tutorial from the site i revealed that those script i wrote was wrong. the mistake is i typed '." (dot) before hitTest.  
the correct one is not dot but comma.

so the script becomes  
mymovieclip, hitTest(targetmovie){  
}

i have tried it and it worked !!!  
for addition i used flash mx. :ninja:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2002, 12:45am UTC](https://forum.kirupa.com/t/about-hittest/537/4 "2002-07-26T00:45:49Z")

</div>

What the hell??? That’s really weird!! As far as I know, it’s not supposed to work with commas! It’s like… An illegal operation for Flash! Or could it be that it’s different in MX? (I use 5)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2002, 9:10am UTC](https://forum.kirupa.com/t/about-hittest/537/5 "2002-07-26T09:10:23Z")

</div>

😛 I had the same reaction! I think that what he meant is that he did

```auto
if (movieClip,hittest(otherClip)...

```

Which is legal.

pom :asian:
