# Mouse cursor

**URL:** <https://forum.kirupa.com/t/mouse-cursor/26867>\
**Category:** Uncategorized\
**Created:** [July 27, 2003, 4:56pm UTC](https://forum.kirupa.com/t/mouse-cursor/26867 "2003-07-27T16:56:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![geedogg](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@geedogg](https://forum.kirupa.com/u/geedogg)\
**Post date:** [July 27, 2003, 4:56pm UTC](https://forum.kirupa.com/t/mouse-cursor/26867/1 "2003-07-27T16:56:09Z")

</div>

Hello, i just got a q for a site im making.

I know that u can sitch the mouse cursor with what ever u want i flash, but is it possible to have f.eks: a man insead of the mouse cursor, then when u roll over diffrent areas, the image switches to something else? (perhaps a tomato;) And when u roll out, it sitches back to the man.

😃 thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2003, 4:57pm UTC](https://forum.kirupa.com/t/mouse-cursor/26867/2 "2003-07-27T16:57:30Z")

</div>

i forgott to say that:)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 12:00am UTC](https://forum.kirupa.com/t/mouse-cursor/26867/3 "2003-07-28T00:00:42Z")

</div>

ya ok make a movie clip… in frame 1 put what you want to follow the mouse… in frame 2 put what you want the mouse to change to, and put stop actions on both frames… give the mc an instance name of “mouse”… in the actions for the mc put

```auto

onClipEvent(enterFrame)
{
Mouse.hide();
_x = _root._xmouse + (_width/2);
_y = _root._ymouse + (_height/2);
}

```

it moves it to the mouse position, but since it will center it on the mouse i moved it half the width and half the height over and down so the top left corner of the mc will be the tip of the mouse… if you want it centered then take out the + width/2 and +height /2 … ok so you got that part and it should be following the mouse… now in your button put the code

```auto

on(rollOver)
{
_root.mouse.gotoAndStop(2);
}
on(rollOut)
{
_root.mouse.gotoAndStop(1);
}

```

and that should do it…

hope this helps

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 12:03am UTC](https://forum.kirupa.com/t/mouse-cursor/26867/4 "2003-07-28T00:03:56Z")

</div>

there is also

[http://www.kirupa.com/developer/flash5/globalmousecursor.htm](http://www.kirupa.com/developer/flash5/globalmousecursor.htm)

and

[http://www.kirupa.com/developer/flash5/follow.htm](http://www.kirupa.com/developer/flash5/follow.htm)

(but i like my way better :))

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 28, 2003, 12:04am UTC](https://forum.kirupa.com/t/mouse-cursor/26867/5 "2003-07-28T00:04:50Z")

</div>

Thanks man!!! 😃
