Find out mouse position

Thumbnail
Submitted by FlashVault.net » In this tutorial I will show you how to get mouse position information.
Rating: 2.0/5 | 811 clicks | 3 comments | 0 saves | share | report

Comments on this tutorial

sktzofrenicApril 13, 2007
moderator

No explanation of the code?

KresoApril 13, 2007

yep, there is explanation..

nicksApril 15, 2007
moderator

For me, the tutorial is over complicated. I would have just created the 2 text fields manually, assign x & y variables to them and just put this on frame 1:

this.onMouseMove = function(){
x = _xmouse;
y = _ymouse;
}

While adding listeners and creating text fields with code is nice, it's harder to explain to the novice, especially when all you want to display is 2 values.

Discuss this tutorial

You must be logged in to comment on a tutorial.