Macromedia Flash - Customize cursor

Using flash, you can hide the browser default cursor and instead create a custom cursor of your choice. In this article, I will show you how to do that on any flash file you want.

Using flash, you can hide the browser default cursor and instead create a custom cursor of your choice. In this article, I will show you how to do that on any flash file you want.

Step 1

Open a new flash file. Go to Document Properties ( Ctrl + J ) and set the Width and Height of the file. Set the Frame rate set to 22fps .

Macromedia Flash - Customize cursor Picture 1Macromedia Flash - Customize cursor Picture 1

Step 2

Double click on layer 1 and rename its name to background .

Step 3

Press Ctrl + R ( Import to Stage ) to put the background image into the file.

Macromedia Flash - Customize cursor Picture 2Macromedia Flash - Customize cursor Picture 2

Step 4

Name a new layer and name it cursor .

Step 5

Select the cursor layer and draw any shape on that layer to replace the default cursor. May be the picture as below.

Macromedia Flash - Customize cursor Picture 3Macromedia Flash - Customize cursor Picture 3

Step 6

Select the pointer and press F8 key (or go to Modify -> Convert to Symbol ) to convert it into a Movie Clip. See the picture below

Macromedia Flash - Customize cursor Picture 4Macromedia Flash - Customize cursor Picture 4

Step 7

Open the Properties Panel ( Ctrl + F3 ), in the Color section choose Alpha and the value is 45% .

Macromedia Flash - Customize cursor Picture 5Macromedia Flash - Customize cursor Picture 5

Step 8

Still in the Properties Panel, under the Movie Clip section, enter the cursor name (as shown below).

Macromedia Flash - Customize cursor Picture 6Macromedia Flash - Customize cursor Picture 6

Step 9

Add a new layer and name it action

Macromedia Flash - Customize cursor Picture 7Macromedia Flash - Customize cursor Picture 7

Step 10

Select the new layer just now, click on the first frame and open the Action Script Panel (F9), then enter the following script:

_root.cursor.swapDepths (1000);

_root.onEnterFrame = function () {

Mouse.hide ();

cursor._x = _root._xmouse;

cursor._y = _root._ymouse;

};

4.1 ★ | 7 Vote