AS3 Custom Cursor

Create a Custom Cursor Using AS3

Tags: , ,

The simplicity of creating a custom cursor within Flash is a task that will surely be used time after time again.  Well, as for creating a custom cursor using AS3, the syntax used is identical as written in AS2.

Create a Custom Cursor

You can easily create a custom cursor just as would in AS2.  The syntax goes as so:

//Hide mouse
Mouse.hide();
//Replace hidden mouse with cursor mc
customCursor.startDrag(true);

 

Download the example .fla

Preview the example

I hope this helps in your migration over into  AS3.  If there is something in particular you want to add or see with the Moving From AS2 to AS3 series, feel free to contact me via the contact page.

Related Posts

CASA Lib

CASA LIb’s FrameUtil: Extending the Functionality of the Flash Timeline

CASA Lib ArrayUtil

CASA Lib’s ArrayUtil: Sorting, Searching and Manipulation of Arrays Made Easy

AS3 Library External Resource

How To: Implement an AS3 Library into Your Flash Environment

ActionScript 3 Logo

Moving From AS2 to AS3: A Handy List of Resources

3 Comments

  1. MDiogo

    02.19.2009

    Reply

    Congrats on your blog. I will be back more often, you have in here very useful information about Flash. Keep up the good work.

    • Angel

      02.19.2009

      Reply

      Thanks, I appreciate it. There is plenty more to come.

  2. Desperado

    10.11.2010

    Reply

    Hi there,

    for whatever reason it is only working following way in my fla:
    1| Mouse.hide();
    2| startDrag(true);

    working with Flash CS4 pro AS3.0
    no clue why I can't give the mc name like:
    1|Mouse.hide();
    2| pointerMC.startDrag(true);

    but it works "my way" also.
    maybe it helps someone else this way also.

    Nice blog anyway.

Leave a Reply









Latest Theme From WooThemes

Unsigned

By WooThemes

Unsigned is a hugely powerful, cleverly developed, yet super easy theme to use for musicians and bands looking to showcase their music, tours, photos, videos and band members all from within WordPress. It even allows you to sell your albums and merchandise thanks to the WooCommerce integration. It truly is a massive theme that will cover your every need.

Theme Categories: Multimedia, Responsive

Latest Tweets