View your Shopping CartFrequently Asked QuestionsEmail Us
Home | About Us | Contact Us
SmartWebby.com provides best web design & web programming services globally
We specialize in Rapid Web Design, ASP.net, ASP and PHP web programmingBest Web Design, Best Web Programming, Global Service Provider - Dependable Professionals to build your website right!

Flash Custom Cursor

Flash Tutorial to change the Standard Cursor to a Custom Cursor

In Flash you can hide the standard cursor (Mouse pointer icon) and create custom cursors. The Mouse object in Flash has a hide method which can be used to hide the normal mouse pointer and then we can define a Movieclip as our custom cursor. In this Tutorial you'll learn how to create and use Movieclips as Custom Cursors using simple Actionscript. It is very simple and neatly explained below.

Creating a Custom Cursor

  1. 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).
  2. 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:
  3. onClipEvent(load)
    {
    Mouse.hide();
    this.startDrag();
    }


    Fig: Simple Custom Cursor in Flash

  4. 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'.
  5. We use the 'startDrag' action of the Movieclip to use the movieclip as a custom cursor.
  6. The Custom Cursor Movieclip can also be Animated and used as a Mask as shown in the example below.
  7. 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.

Absolutely FREE Web Templates
Check out these quality free web templates and download them without any registration or sign-up!

FREE Web Design Guide
From web design tips & ideas to HTML, CSS Styles, Fireworks & Dreamweaver you'll find all you need to know about effective web site design right here!

Quality Dreamweaver Templates
Professional quality dreamweaver templates in over 20 categories, starting at just $9.95! Instant download & easy customization