Create a Custom Cursor Using AS3

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.

4 thoughts on “Create a Custom Cursor Using AS3

  1. 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.

Comments are closed.