I want to record the mouse’s position on stage on entering the stage with out having to move the mouse.
**In example:
I want to have an event occur only if the **mouse Y position is greater than 200 when entering the stage.
The only way i know to do is is setting up a MOUSE_MOVE type, mouse event.
here is my code:
var Timer_Down2:Timer = new Timer(10000)
stage.addEventListener(Event.ENTER_FRAME, slider_down);
function slider_down(event):void{
if (slider.y == (((stage.height - bottom_banner.height) +.5) && (mouseY<(stage.height -(slider.height + bottom_banner.height))))){
Timer_Down2.addEventListener(TimerEvent.TIMER, slider_down2);
Timer_Down2.start();
trace(mouseY);
}
}
thnx in advance