Posted by Sankar.G | Posted in AS3 | 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
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)
Post a Comment