# hitTest wierd error

**URL:** https://forum.kirupa.com/t/hittest-wierd-error/206977
**Category:** flash
**Created:** [November 13, 2006, 6:40pm UTC](https://forum.kirupa.com/t/hittest-wierd-error/206977 "2006-11-13T18:40:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![4GOT10](https://avatars.discourse-cdn.com/v4/letter/4/b9e5f3/32.png) [@4GOT10](https://forum.kirupa.com/u/4GOT10)
#### Post date: [November 13, 2006, 6:40pm UTC](https://forum.kirupa.com/t/hittest-wierd-error/206977/1 "2006-11-13T18:40:01Z")

</div>

Hello, i’m having trouble using hitTest in a videogame.

I have 2 movieclips on “root”. One is a movieclip containing my character and the other one is a movieclip containing a freeform to check collision with my character.

Everything is working ok, and collision works great. The problem arises when i try to embed ALL my game into another flash movie (to use as a game selector, and embed there several movieclips loading them). Everything works BUT the collision ![](http://forum.kirupa.com/uploads/kirupa/1799/6a24f1d926eff459.gif)

Here is the code i’m using:

```
Code:
[LEFT]if (motion_path.hitTest(JohnnyfeetX, JohnnyfeetY, true)) 

```

{  
Johnny.\_y-=0.2;  
}[/LEFT]

_JohnnyfeetX_ and _JohnnyfeetY_ are x and y coords for the bottom of my character, calculated some lines before.

Anybody knows what happens?
