# hitTest vary from flash player?

**URL:** <https://forum.kirupa.com/t/hittest-vary-from-flash-player/322509>\
**Category:** flash\
**Created:** [May 23, 2011, 11:53pm UTC](https://forum.kirupa.com/t/hittest-vary-from-flash-player/322509 "2011-05-23T23:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garb](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@Garb](https://forum.kirupa.com/u/Garb)\
**Post date:** [May 23, 2011, 11:53pm UTC](https://forum.kirupa.com/t/hittest-vary-from-flash-player/322509/1 "2011-05-23T23:53:51Z")

</div>

So, I am working on a game in cs5.

I figured, eh, I would try to make it look a bit better and throw in some drop shadows. Unfortunately, I was using Flash player 6. Normally, this isn’t really a problem and I would just blow it over, But due to the fact flash player 6, dosen’t support filters, I needed to use flash player 8.

so I checked it out, threw on some test shadows, and boom, looked a ton nicer. Then I tired it out.

You see, When the “Player” Walk over a specific item, the item gets a hitTest with the player and does some actions.

For whatever reason hitTest, dosen’t work in Flash Player 8.

So I ask, why is this, And how can I fix it? Here is an example code:

```auto
 onClipEvent(enterFrame){
    if(_root.player.head. **hitTest** (this)){
        _root.player.gotoAndPlay("Assault")
        unloadMovie(this);
    }
}

```

It’s still in as2, in both versions, but why does flash player 6 work, and not flash player 8? And how can I fix it?
