# Thought this might be useful

**URL:** <https://forum.kirupa.com/t/thought-this-might-be-useful/7304>\
**Category:** Uncategorized\
**Created:** [October 28, 2002, 1:41am UTC](https://forum.kirupa.com/t/thought-this-might-be-useful/7304 "2002-10-28T01:41:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [October 28, 2002, 1:41am UTC](https://forum.kirupa.com/t/thought-this-might-be-useful/7304/1 "2002-10-28T01:41:37Z")

</div>

here’s how to make a mouse cursor without using startDrag();

=)

make a new symbol that you want to be your cursor  
put that symbol on the main stage / timeline in it’s own layer on frame one … then apply these actions to the symbol

```auto

onClipEvent (load) {
	Mouse.hide();
	_x = 0;
	_y = 0;
	speed = 1;
}
onClipEvent (enterFrame) {
	endX = _root._xmouse;
	endY = _root._ymouse;
	_x += (endX-_x)/speed;
	_y += (endY-_y)/speed;
}

```

thanks for the inspiration lostinbeta

does anyone know if there is a function to detect when a mouse is over a button so you can make your own lil hand thingy that the cursor normally shows when you’re over a button?

hope this helps someone=)

---

<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:** [October 28, 2002, 1:55am UTC](https://forum.kirupa.com/t/thought-this-might-be-useful/7304/2 "2002-10-28T01:55:49Z")

</div>

hey beta … why doesnt this work?

```auto

onClipEvent (mouseDown) {
	cursor.gotoAndStop(2);
}
onClipEvent (mouseUp) {
	cursor.gotoAndStop(1);
}

```

i have edited the mouse cursor to have two frames one labeled down and one labeled up … obviously corresponding to mouse states.

i put this code on the symbol … but it doesn’t do anything

---

<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:** [October 28, 2002, 2:59am UTC](https://forum.kirupa.com/t/thought-this-might-be-useful/7304/3 "2002-10-28T02:59:16Z")

</div>

figured it out!

i forgot as usual to put the \_root infront of the cursor.gotoAndStop

=)
