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.
















3 Comments
MDiogo
02.19.2009
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
Thanks, I appreciate it. There is plenty more to come.
Desperado
10.11.2010
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.
Moving From AS2 to AS3: A Handy List of Resources | Flash Speaks Actionscript
09.28.2010
[...] Create a Custom Cursor Using AS3 [...]
There are no trackbacks to display at this time.