# Advanced Collision-Detection

**URL:** https://forum.kirupa.com/t/advanced-collision-detection/271485
**Category:** flash
**Created:** [September 23, 2008, 5:18pm UTC](https://forum.kirupa.com/t/advanced-collision-detection/271485 "2008-09-23T17:18:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Indyaner](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@Indyaner](https://forum.kirupa.com/u/Indyaner)
#### Post date: [September 23, 2008, 5:18pm UTC](https://forum.kirupa.com/t/advanced-collision-detection/271485/1 "2008-09-23T17:18:07Z")

</div>

Hi

I need a AS2(!) Class to do advanced Hittests. I’ve found a realy great Class for this [here by gskinner](http://www.gskinner.com/blog/archives/2005/10/source_code_sha.html). It works very well… except… its got this bug when the window was resized. In the Comments were 2 codefragments to fix this. But I cant get this working. And the trick with Stage.align=“TL”; is not suitable for my project.

So I searched for another Class like this. But I only found 2 other ([and much better) classes written in AS3 [URL=“http://www.adventuresinactionscript.com/blog/15-03-2008/actionscript-3-hittestobject-and-pixel-perfect-collision-detection?page=1”]here and [URL=“http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/”]here](http://www.adventuresinactionscript.com/sites/default/files/blog/actionscript/15-03-2008/FlashHitTestObjectCollisionDetection.htm)… to bad. The one from [adventuresinactionscript.com](http://adventuresinactionscript.com) works great in performance.

Does anybody know, if there a a working Class like the one from gskinner in AS2(!) out there without the Fullscreen/Resize Bug? Maybe someone get gSkinners Class working with the fixes in the comments. I tried and failed.

I aprecheate any help

Greetings from Germany.

(I did ask this yesterday at the actionscript-forums, but didnt get an answere and now the thread is deleted :sigh: )
