# Tips on building a better mouse cursor

**URL:** https://forum.kirupa.com/t/tips-on-building-a-better-mouse-cursor/288913
**Category:** flash
**Created:** [May 22, 2009, 7:57pm UTC](https://forum.kirupa.com/t/tips-on-building-a-better-mouse-cursor/288913 "2009-05-22T19:57:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Brent\_Summers](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@Brent\_Summers](https://forum.kirupa.com/u/Brent_Summers)
#### Post date: [May 22, 2009, 7:57pm UTC](https://forum.kirupa.com/t/tips-on-building-a-better-mouse-cursor/288913/1 "2009-05-22T19:57:13Z")

</div>

The basic implementations of a custom mouse cursor I’ve found to be incredibly unresponsive.

Does anyone out there have any tricks on how to structure the code so that a custom cursor actually updates its position in a more responsive manner?

**Code:**  
function CursorOn():void  
{  
Mouse.hide();  
Cursor.visible = true;  
Cursor.x = mouseX;  
Cursor.y = mouseY;  
Cursor.startDrag();  
Cursor.mouseEnabled = false;  
Cursor.mouseChildren = false;  
}
