megadev
04-26-2008, 05:30 PM
Afternoon everyone,
I’ve got a problem with hiding and showing the mouse pointer. I’m using “Mouse.hide()” to hide the pointer which works fine, but it won’t reappear when it leaves the stage. Interestingly though, it does flicker as I move the mouse. This is the code I’m using:
if (mouseX >= 0 && mouseX <= stage.stageWidth && mouseY >= 0 && mouseY <= stage.stageHeight)
Mouse.hide();
else
Mouse.show();
I thought that I could hide the pointer on MouseEvent.MOUSE_OUT, but there doesn’t appear to be a MOUSE_IN event that I can detect to show the pointer again. Does anyone know where I’m going wrong?
Cheers,
Mike.
I’ve got a problem with hiding and showing the mouse pointer. I’m using “Mouse.hide()” to hide the pointer which works fine, but it won’t reappear when it leaves the stage. Interestingly though, it does flicker as I move the mouse. This is the code I’m using:
if (mouseX >= 0 && mouseX <= stage.stageWidth && mouseY >= 0 && mouseY <= stage.stageHeight)
Mouse.hide();
else
Mouse.show();
I thought that I could hide the pointer on MouseEvent.MOUSE_OUT, but there doesn’t appear to be a MOUSE_IN event that I can detect to show the pointer again. Does anyone know where I’m going wrong?
Cheers,
Mike.