+ Reply to Thread
Results 1 to 3 of 3

Thread: Creating a Custom Cursor

  1. #1
    ahsan16 is offline Learning Programmer
    Join Date
    Jan 2007
    Posts
    34
    Rep Power
    19

    Creating a Custom Cursor

    # 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:
    Code:
    onClipEvent(load)
    {
    Mouse.hide();
    this.startDrag();
    }
    # 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'.
    # 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.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    xtraze is offline Programming God
    Join Date
    Dec 2006
    Location
    Sri lanka
    Posts
    911
    Rep Power
    0
    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.

  4. #3
    clookid's Avatar
    clookid is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    This tutorial looks a little to complicated for me!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to change the cursor in sdl?
    By even821 in forum C and C++
    Replies: 5
    Last Post: 10-16-2011, 11:20 AM
  2. Replies: 11
    Last Post: 01-20-2011, 12:52 PM
  3. cursor position
    By techker in forum General Programming
    Replies: 3
    Last Post: 05-13-2009, 08:50 AM
  4. Creating a Custom File Type...Need Help
    By deusprogrammer in forum C and C++
    Replies: 2
    Last Post: 03-13-2007, 12:41 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts