Flash MX 2004 - Custom Cursor

Adobe Flash CS3 Professional
Flash CS3 introduces many new and exciting features and delivers an entirely new experience in Flash dev.
Adobe Flash CS3
Adobe Creative Suite 3
Streamline your web dev with a collection of Adobe software including the new Flash CS3 Pro.
Adobe Creative Suite 3
This is a pretty simple tutorial to teach you how to make a custom cursor for your Flash movie. It consists of a movie clip and a little bit of Actionscript, that's it.

The first thing you need to do is create a movie clip which will be your cursor. Go to Insert > New Symbol, give it a Name of cursor and make sure Movie Clip is selected as the Behavior. Now create your cursor in this new MC. I simply created a triangle and rotated it a bit. The center of the MC is where your hidden cursor would be, so position the cursor you made accordingly. I positioned the point of my triangle at the center (crosshair) of my MC.

Now go back to your main stage and drag the new MC on to the stage from your Library. Hit F9 to bring up the Actions panel. Copy the following code into the AS window. If you don't want to constrain the cursor to a certain area, remove , L, T, R, B from the code. If you do, then replace L, T, R and B with the left, top, right and bottom coordinates you want to constrain it to.

onClipEvent (load) {
    Mouse.hide();
    startDrag(this, true, L, T, R, B);
}


Test your movie. If all went well then you should end up with something similar to this.