Flash tutorials
Home 3D (2) Actionscripting (66) Animation (108) Audio (4) Drawing (7) Full flash sites (4) Getting Started (15) Navigation (25) Special Effects (61) Text Effects (38)

Trendy Custom Cursor Using the Action Script 3

23.2.2009, 16:15    Total views: 36601

This lesson, explained in extreme detail, will teach you how to create trendy custom cursor using a little action script code. You can use this lesson, when you like to hide a standard cursor and use a custom cursor. Let's start!

Example:




Step 1

Create a new flash document. Press Ctrl+J key on the keyboard (Document Properties) and set the dimensions of your document as whatever you like. Select any color as background color. Set your Flash movie's frame rate to 26 and click ok.





Step 2


Using the Flash Tools for drawing, draw a custom cursor shape like it is shown on the picture below!



Step 3

While the cursor shape 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 is still selected, go to the Properties Panel below the stage. On the left side, You will find the Instance name input field there. Call this Movie Clip cursor_mc. See the picture below!



Step 5

Create now a new layer above the layer cursor and name it action.

Step 6

After that, select the first frame of layer action and go to the Action Script Panel (F9). Then, enter this code inside the action panel:

Mouse.hide();
cursor_mc.startDrag(true);

That's it!

Test your Movie and enjoy!

Download source file (.fla)

Have questions about this tutorial?
Visit our friendly Community Forums!
Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!

Top tutorials

1. Advanced full flash site - Part 1
Total views: 292757

2. High-tech city animation
Total views: 240816

3. Water effect
Total views: 224854

4. Photo slide show
Total views: 207569

5. Special Picture Effect
Total views: 183339



Related links