Answered
How to show mouse x and y position of stage in trace
I am in learning phase but do not to show the x andy posion of mouse on the stage. I want to trace the x and y position of mouse in stage. How we can do this ?
I am in learning phase but do not to show the x andy posion of mouse on the stage. I want to trace the x and y position of mouse in stage. How we can do this ?
stage.addEventListener(MouseEvent.MOUSE_MOVE,f);
function f(e:MouseEvent){
trace(e.localX,e.localY);
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.