# hitTest problem absolute /relative paths

**URL:** https://forum.kirupa.com/t/hittest-problem-absolute-relative-paths/246167
**Category:** flash
**Created:** [December 7, 2007, 5:19pm UTC](https://forum.kirupa.com/t/hittest-problem-absolute-relative-paths/246167 "2007-12-07T17:19:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![webreake](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@webreake](https://forum.kirupa.com/u/webreake)
#### Post date: [December 7, 2007, 5:19pm UTC](https://forum.kirupa.com/t/hittest-problem-absolute-relative-paths/246167/1 "2007-12-07T17:19:29Z")

</div>

hi  
im using hitTest to create a pataform game but i found a problem when loading the game.swf inside other swf

The problem is that hitTest is getting \_x, \_y values relative to the swf container instead of getting it relative to the mc loaded, you all can see the problem with the files on the zip (if you place the component loader at 0,0 position the problem is solve but thats not the way to fix this).

im using correct relatives paths to avoid the problem but it does not work so if someone has done a personalized prototype of hitTest somewhere in the net please tell me, or give me a hint in how to fix this.
