1. Home
  2. Computing & Technology
  3. Animation

Creating a Custom Mouse Cursor in Flash

By , About.com Guide

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

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.