Custom Cursor


Example:

Use the example above to see how custom cursors can work.

Custom cursors a surprising simple to create and add a great effect to a website.

Step. 1

First of all create your custom cursor,a simple way is to select the arrow tool from within SwishMax and create a simple cursor to start with like Fig.1

Custom Cursor

Fig.1

Step. 2

When you are happy with your cursor, group it as a sprite, give it the name "Custom - Cursor" and add the following code to the sprite.

onLoad () {
mouse.hide();
startDragLocked();
}

That's it now press Ctrl+T to test it out.



Author's URL: Craig Lowe
Final results of our readers
New!
Passed through all the steps? Share your result!
Your result will be premoderated.
Please make sure you choose the right image.
 
 



Captcha

*Required fileds
Our Swish tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website. More Swish Tutorials: Featured Materials | Fresh Materials | More Swish Tutorials at FlashPerfection.com

Reader's comments
comments Lars May 27, 2007 says:
Please, correct the code for the cursor:

onClipEvent(enterFrame){
_x+=_root._xmouse;
_y+=_root._ymouse;
}

no pluses needed here, guys! It should go like this:

onClipEvent(enterFrame){
_x=_root._xmouse;
_y=_root._ymouse;
}

Reply
Add comments to "Custom Cursor"

Captcha