Flash cursor using the AS3

Date: 24.6.2009, 16:31    Total views: 10368

Using this thoroughly explained, detailed flash lesson, I will explain to you how to create flash cursor using the AS3.














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 32 and click ok.



Step 2


Create now some mouse cursor and after that convert it into a Movie Clip Symbol.



Step 3

While the new made movie clip (cursor) 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. See the picture below!



Step 4

Call the current layer cursor. Double-click on its default name (Layer 1) to change it. Press Enter once you have typed in the new name!

Step 5

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

Step 6

Select the first frame of layer action script and enter this code inside the actions panel:

Mouse.hide();

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

We're done now!

Test your movie and enjoy!

Download source file (.fla)

  Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!
Share
ShareSidebar