Web
Article

Flash Script – Hide and Change Cursor Appearance

By Georgina Laidlaw


Many Flash developers ask me how they can change the appearance of the user’s cursor as it moves across their Flash site. Here’s the answer!

Before you begin, download the sample files here.

1. Let’s start by creating a cursor. In the sample file I’ve created a cross hair.

2. Convert the cursor object to a movie clip.

3. Right click the cursor movie clip, and insert this action:

   onClipEvent (load) 
  {
  startDrag ("", true);
  }

This action moves the cursor movie clip along with the cursor.

4.In the default layer key frame, insert the action:

mouse.hide();

This action hides the mouse.

That’s it! Test the movie.

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

No Reader comments

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in Front-end, once a week, for free.