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:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    2.00/5

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

Comments

avatarsktzofrenic over 10 years ago

No explanation of the code?

avatarKreso over 10 years ago

yep, there is explanation..

avatarnicks (moderator)over 10 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.