# hitTest coordinate dislocation in loaded swf

**URL:** https://forum.kirupa.com/t/hittest-coordinate-dislocation-in-loaded-swf/320095
**Category:** flash
**Created:** [March 14, 2011, 8:56am UTC](https://forum.kirupa.com/t/hittest-coordinate-dislocation-in-loaded-swf/320095 "2011-03-14T08:56:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wille](https://avatars.discourse-cdn.com/v4/letter/w/bbe5ce/32.png) [@wille](https://forum.kirupa.com/u/wille)
#### Post date: [March 14, 2011, 8:56am UTC](https://forum.kirupa.com/t/hittest-coordinate-dislocation-in-loaded-swf/320095/1 "2011-03-14T08:56:39Z")

</div>

Hi

The swf (slideshow) has arrows that are activated by hitTests.

When I load the slidewhow swf into another, larger one (e. g. att 100, 100,) a strange thing happens: The hitTest reacts with a mouse displacement of 100, 100, which means that I must move the mouse to a position 100 pixels down and 100 pixels to the right of my arrow to get the mouseOver reaction.

I have tried all the varieties of localToGlobal and globalToLocal that I can think of, but nothing helps.

Does anybody know why this is and how to fix it?
