x,y coordinates

3 posts

Flag Post

How could I go about outputting or tracing the mouses x and y coordinates? I am trying to get a similar result to this. (as shown in the top right corner in this game)

http://www.kongregate.com/games/monsterkillu/an-epic-minimal-adventure

 
Flag Post
myTextfield.text = "X: " + stage.mouseX + "\nY: " + stage.mouseY;
 
Flag Post

Thanks. Almost forgot it needs to be in an enterFrameHandler