|
|
|
|
|
Practical flash curosor
Date: 16.8.2007, 18:47 Total views: 20193
In this thoroughly explained, detailed lesson, I will show you how to create a really cool and practical flash cursor using a little action script code. You will use this cursor when you like to hide standard mouse cursor. Using this lesson, you will also learn how to draw cursor, how to convert it into a Movie Clip Symbol, how to apply action script code on it, how to use instance name and much more!
Step 1
Create a new flash document. Press Ctrl+J key (Document Properties) and set your dimensions at whatever you want, set the background color as whatever you like. For flash movie's frame rate set 26 and click ok.
Step 2
Draw any shape using the flash tools for drawing, which will represent mouse cursor. My shape looks like this:

Step 3
While the shape (cursor) is still selected, press F8 key (Convert to Symbol) to convert it into a Movie Clip Symbol.

Step 4
While the new made Movie Clip (cursor) is still selected, go to the Properties Panel (Ctrl+F3) below the stage. On the left side, You will find the Instance name input field there. Call this movie clip cursor. See the picture below.

Step 5
Click on the first frame of layer cursor and go to the Action Script Panel (F9) below the stage. Then, enter this code inside the actions panel:
startDrag(cursor, true);
We're done!
Test your Movie (Ctrl+Enter).
Have a nice day!
Download source file (.fla)
|
|