Page 1 of 1

Changing mouse/cursor appearance Flash MX - basic ActionScript Rate Topic: -----

#1 capty99   User is offline

  • i am colt mccoy
  • member icon

Reputation: 99
  • View blog
  • Posts: 10,081
  • Joined: 26-April 01

Posted 19 January 2005 - 10:43 PM

This tutorial will change the look of the
mouse in the flash movie to anything that
your heart can desire.
(sorry for not including a picture, its kinda hard to show... just imagine the regular white mouse changed to something else.)
- Open a new flash movie

Step . 1
Draw any random shape that you would want
to ... in my movie i just drew a green
normal mouse shaped thing but your object
could be shaped however you want it.

Step . 2
convert this image to a symbol by double
clicking on the image itself and going to
insert > convert to symbol
Name : mouse
behavior : movie clip
make sure you type in the name as "mouse"
and that the movie clip behavior is
selected, and then press okay.

Posted Image

Step . 3
set the instance name for this symbol to
match the movie clip name as "mouse".
(in flash 5 and before you right click and go to instance to change the instance name)

Posted Image

Step . 4
the actions...
in the first frame of this movie
right click > actions.
this brings up the actions palette which
makes everything in this movie works.
on the left handbar select
Actions > Movie Clip Control > startDrag
this code will tell the movie that when
it opens it should start the drag of
an object... you want to define which
object that is so after selecting the
start drag action you have the option
to input a target and the target is
"mouse". the name of your instance, and
movie clip. you also want to select
"lock to center" as an option for the

Posted Image

Step . 5
if you were to play the movie right now
your image would be there locked to the
mouse but your mouse would also show on
the screen. to hide the mouse from your
view you need to add one more action
objects > movie > mouse > methods > hide
this should hide the mouse from your view
YOUR DONE! check your work by going to
control > test movie.

This post has been edited by capty99: 21 January 2005 - 12:10 AM

Is This A Good Question/Topic? 1
  • +

Replies To: Changing mouse/cursor appearance

#2 Avethan   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-August 09

Posted 26 October 2009 - 05:49 PM

Or you could make a picture, convert to symbol "cursor" and then add this actionscript 3.0 to layer 1, frame 1.

:D :D :D

var cursor:MovieClip;

function Mouse():void
	cursor = new Cursor();
	stage.addEventListener(MouseEvent.MOUSE_MOVE, dragCursor);

function dragCursor(event:MouseEvent):void
	cursor.x= this.mouseX;
	cursor.y= this.mouseY;

Was This Post Helpful? 0
  • +
  • -

#3 GameHelpNeeded   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 29-April 10

Posted 03 May 2010 - 05:16 AM

Thanks both of you! I was a bit confused but I got there :)
Was This Post Helpful? 0
  • +
  • -

#4 Guest_Ben Fhala*


Posted 21 February 2011 - 07:39 PM

Hey guys there is a new way of doing it if your targeting flash player 10.2
i've made a 10 minute video with all the steps and the details you can even find out resource links and useful geting started tips.

Using the new Native Mouse Cursor behaviors for Flash player 10.2

if you want to hear more about updates check out the youtube account(has more cool flash player 10.2 things) or our twitter @everythingfla ;)
Was This Post Helpful? 0

Page 1 of 1