# Create a Movieclip for the custom cursor, say a small circle and name the instance say, 'cust_cursor'. The instance name of a symbol is used to control it using Actionscript commands (Refer Advanced Masking for this example).
# Select the Movieclip instance 'cust_cursor' on the stage and reduce the Alpha value to 40 and write the following Actionscript code for it as given below:
# The 'hide' method of the predefined object 'Mouse' is used to hide the standard cursor. The keyword 'this' is used to reference the Movieclip instance 'cust_cursor'.Code:onClipEvent(load) { Mouse.hide(); this.startDrag(); }
# We use the 'startDrag' action of the Movieclip to use the movieclip as a custom cursor.
# The Custom Cursor Movieclip can also be Animated and used as a Mask as shown in the example below.
# Save your work and test the Movie (Ctrl + Enter). That's it you have learnt how to create a movieclip as a custom cursor in Flash.
Last edited by John; 01-08-2007 at 10:39 AM. Reason: When posting code please use code tags. There are PHP, HTML and CODE tags that can be used while posting code segments.
Let me get this,
If we used this movie clip anywhere in a web-page
Q. Whether only the place where the movie clip is located, have the custom cursor or The whole page might have the custom cursor ?
As the topic is Custom cursors, I think custom cursors for websites won't go Off topic as I have found some ... cursors work in IE6+
Custom Cursors
Try these.
This tutorial looks a little to complicated for me!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks