i have a setup like this, when the mouse cursor is invisible I put movieclip on stage like so:
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?