Make a custom animated mouse cursor


In this tutorial you will learn how to make an animated mouse cursor in Macromedia Flash in just a few easy steps


1.
Okay this is very very basic, and demands only two lines of code.

Well I won't do over the basics of drawing a cursor, thats up to your own creativity.

What we will do is to right click the cursor we just made and convert it to a movie clip.

Photoshop Tutorial thumb picture


2.
Now in the property panel name it mouse1 (we dont name it mouse because thats already used by actionscipt in another matter).

Photoshop Tutorial thumb picture


3.
Now for the action script.
Click somewhere on the stage and go to the action script panel, then type in this code.

startDrag("mouse1",true);
Mouse.hide();

startDrag says it self, then the mouse1 name and true is to set it to follow the mouse position.

Mouse.hide does hide the original mouse cursor.

Photoshop Tutorial thumb picture


Now we can easily animate our curser, just double click the cursor movie clip on the stage and make a new keyframe in the time line, and make some changes to the cursor.

0tutor.com rss feed