Flash actionscript 3.0: read the X & Y axis of a mouse Pointer

read the X & Y axis of a mouse Pointer

Posted by Sankar.G | Posted in | Posted on 10:05 AM

if you want to get the X & Y axis of a mouse Pointer is Action script 3.0

code:
parent.addEventListener(Event.ENTER_FRAME,fun);
function fun(e:Event)
{
t1_txt.text=Number(mouseX).toString();
t2_txt.text=Number(mouseY).toString();
}

t1_txt & t2_txt = textboxes

Comments (0)