1. Home
  2. Computing & Technology
  3. Animation

Creating a Custom Mouse Cursor in Flash

By , About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  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.