Your Ad Here

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

image 1

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
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

Internet & computing Flash is a vector-based moving graphics format created by Macromedia for the publication of animations on the World Wide Web. More Flash & Swish: Most Popular Materials | Fresh Materials | More Swish Tutorials at FlashPerfection.com

Add comments to "Custom Cursor"

Only registered users can write comment

Reader's comments
comments Lars May 27, 2007 says:
Custom Cursor
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;
}