i am adding enterframe event listener on the condition that mouse is not on the stage.
if (!((mouseX < stage.stageWidth) && (mouseY < stage.StageHeight))) {
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
but the if condition always return false because the mouseX and mouseY seems to take the last value when it leaves the stage(i.e. moved out of the flash content).
How to achieve the desired result? some body help!