Animation

  1. Home
  2. Computing & Technology
  3. Animation

Creating a Custom Mouse Cursor in Flash

By Adrien-Luc Sanders, About.com

5 of 7

Just in case, add a _root. in front of each _xmouse and _ymouse operator, to make sure that Flash knows it needs to return to the main stage before getting those mouse coordinates:

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

You can take a look at the work-in-progress here, but you’ll see one major problem: we’ve got two mouse cursors now, instead of one. The new cursor doesn’t replace the standard one; it just follows it. It’s not a real cursor; it’s just a graphic object representing the default one.

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.