# Different state of a Custom Mouse Cursor

**URL:** <https://forum.kirupa.com/t/different-state-of-a-custom-mouse-cursor/219112>\
**Category:** flash\
**Created:** [March 14, 2007, 12:01am UTC](https://forum.kirupa.com/t/different-state-of-a-custom-mouse-cursor/219112 "2007-03-14T00:01:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artavenir](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/artavenir/32/3400_2.png) [@artavenir](https://forum.kirupa.com/u/artavenir)\
**Post date:** [March 14, 2007, 12:01am UTC](https://forum.kirupa.com/t/different-state-of-a-custom-mouse-cursor/219112/1 "2007-03-14T00:01:49Z")

</div>

Hi everyone,

Just want to ask how I can customize the different state of a button. I have already followed this action script for the mouse cursor.

onClipEvent (enterFrame) {  
Mouse.hide();  
\_x = \_root.\_xmouse;  
\_y = \_root.\_ymouse;  
}

How about for the **over state** and **on press** state?

Thanks!
