Animation

  1. Home
  2. Computing & Technology
  3. Animation

Creating a Custom Mouse Cursor in Flash

By Adrien-Luc Sanders, About.com

4 of 7

Now for the vertical position:

onclipEvent (enterFrame) {
_x = _xmouse;
_y = _ymouse;
}

_y and _ymouse are the same as _x and _xmouse, only the operators represent the y (vertical) position as measured in pixels from the top edge of the stage.

Now, the moment that each frame loads, Flash checks the x and y coordinates of the mouse cursor, and matches the position of the custom cursor to it.

Explore Animation

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Animation

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Creating a Custom Mouse Cursor in Flash

©2009 About.com, a part of The New York Times Company.

All rights reserved.