# AS3 Change to hit-test

**URL:** <https://forum.kirupa.com/t/as3-change-to-hit-test/327519>\
**Category:** flash\
**Created:** [March 6, 2012, 8:42pm UTC](https://forum.kirupa.com/t/as3-change-to-hit-test/327519 "2012-03-06T20:42:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexAAA](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@alexAAA](https://forum.kirupa.com/u/alexAAA)\
**Post date:** [March 6, 2012, 8:42pm UTC](https://forum.kirupa.com/t/as3-change-to-hit-test/327519/1 "2012-03-06T20:42:08Z")

</div>

Hi,  
I’ve followed this tutorial on the internet  
and everthing works fine  
but I’d like to use hit-tests instead of the intersect-code

I’d really appreciate if someone could help me change the code so it works just the same with hit-tests.

It is really important for my grade in school…The problem with this code is that I dont fully understand it.so hittests would be a better way.

Also intersects works only with rectangles and I also want to use other shapes…

I’ve tried so many different ways but I dont get the same result.

I attached my .fla and .as-files

Thanks in advance!
