# hitTest vs loadMovie

**URL:** <https://forum.kirupa.com/t/hittest-vs-loadmovie/31938>\
**Category:** flash\
**Created:** [September 29, 2003, 1:37pm UTC](https://forum.kirupa.com/t/hittest-vs-loadmovie/31938 "2003-09-29T13:37:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)\
**Post date:** [September 29, 2003, 1:37pm UTC](https://forum.kirupa.com/t/hittest-vs-loadmovie/31938/1 "2003-09-29T13:37:46Z")

</div>

Hello there! 🙂

Once again I need some help: Is it IMPOSSIBLE to use hitTest in a external swf when loading it into my main movie!? Or is there a way around and still using hitTest?

Heres a simple example:

**Main Movie:**

```auto
_root.createEmptyMovieClip("container", 1);
loadMovie("loader.swf", "container");
container._x = 20 ;
container._y = 20 ;

```

**Loader:**

```auto
this.onEnterFrame = function() {		
        if (_root.cake.hitTest(_root._xmouse, _root._ymouse, true)) {
             trace("mouse intersects cake");   
        }
}

```

The loader.swf works fine on it’s own, but when loaded into my main movie nothing happens!?..
