# Custom cursor question

**URL:** <https://forum.kirupa.com/t/custom-cursor-question/303652>\
**Category:** flash\
**Created:** [January 24, 2010, 11:34am UTC](https://forum.kirupa.com/t/custom-cursor-question/303652 "2010-01-24T11:34:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luoruize](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@luoruize](https://forum.kirupa.com/u/luoruize)\
**Post date:** [January 24, 2010, 11:34am UTC](https://forum.kirupa.com/t/custom-cursor-question/303652/1 "2010-01-24T11:34:22Z")

</div>

Hey guys,

I tried to create a custom cursor using the following code:

Mouse.hide();  
stage.addEventListener(MouseEvent.MOUSE\_MOVE,followCursor);

function followCursor(e:MouseEvent):void {  
mouseCursor.x = stage.mouseX;  
mouseCursor.y = stage.mouseY;  
e.updateAfterEvent();  
}

This works just fine. However, Flash is treating the entire symbol as the mouse pointer. For example, when I place a button on the stage and put the new cursor over it, if just a part of the cursor is not within the button’s boundaries, then Flash treats it as a MOUSE\_OUT event.  
Any ideas how to solve this?
