# Hit test point problem

**URL:** <https://forum.kirupa.com/t/hit-test-point-problem/280412>\
**Category:** Uncategorized\
**Created:** [January 27, 2009, 12:29pm UTC](https://forum.kirupa.com/t/hit-test-point-problem/280412 "2009-01-27T12:29:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarjoh](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@scarjoh](https://forum.kirupa.com/u/scarjoh)\
**Post date:** [January 27, 2009, 12:29pm UTC](https://forum.kirupa.com/t/hit-test-point-problem/280412/1 "2009-01-27T12:29:22Z")

</div>

i have a setup like this, when the mouse cursor is invisible I put movieclip on stage like so:

```php
stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor);  
function redrawCursor(e:MouseEvent):void {
        if (imageLoader.hitTestPoint(mouseX, mouseY, true)) {
            Mouse.hide();
            message_mc.visible = true;
            message_mc.x = mouseX;
            message_mc.y = mouseY;
            e.updateAfterEvent();
        } else {
            Mouse.show();
            message_mc.visible = false;
}

```

but for some reason the movieclip its flickering all the time on and off when i move the mouse, and on some places when i stop the mouse not even showing…  
does anybody know why is this happening?
