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.

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

Capital

By WooThemes

Capital is a WooCommerce theme which has been designed specifically to sell digital products. There are options to strip functionality right back which makes this the perfect theme for boutique software agencies. Capital has also been fully optimised for use on hand-held, touch screen devices.

Theme Categories: Responsive, WooCommerce

Latest Tweets