1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Flash: Find out mouse position

  1. Clicks today:
  2. Clicks this month:
  3. Overall rating:

Flash » Actionscript — over 13 years ago
In this tutorial I will show you how to get mouse position information.


avatarsktzofrenic over 13 years ago

No explanation of the code?

avatarKreso over 13 years ago

yep, there is explanation..

avatarnicks (moderator)over 13 years ago

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.

Your Comment

You must be logged in to post a comment.