# hitTestPoint Trouble

**URL:** <https://forum.kirupa.com/t/hittestpoint-trouble/306741>\
**Category:** flash\
**Created:** [March 21, 2010, 5:33pm UTC](https://forum.kirupa.com/t/hittestpoint-trouble/306741 "2010-03-21T17:33:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slttx](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@slttx](https://forum.kirupa.com/u/slttx)\
**Post date:** [March 21, 2010, 5:33pm UTC](https://forum.kirupa.com/t/hittestpoint-trouble/306741/1 "2010-03-21T17:33:28Z")

</div>

Can’t understand why the first hitTestPoint works only at the intersection of figures.  
Please help.

```auto
import flash.geom.ColorTransform;
var color:ColorTransform = new ColorTransform();;
 
//Align with ss1
     higlight.x = ss1.x;
     higlight.y = ss1.y;
//Check mouse hit and highlight figure
    if (higlight.hitTestPoint(mouseX,mouseY,true)) {
        color.redOffset = 50;
        ss1.transform.colorTransform = color;
    } else {
        color.redOffset = 0;
        ss1.transform.colorTransform = color;
    }
 
//Align with ss2
     higlight.x = ss2.x;
     higlight.y = ss2.y;
//Check mouse hit and highlight figure
    if (higlight.hitTestPoint(mouseX,mouseY,true)) {
        color.redOffset = 50;
        ss2.transform.colorTransform = color;
    } else {
        color.redOffset = 0;
        ss2.transform.colorTransform = color;
    }

```
