# Customising the mouse cursor, but constraining its active area

**URL:** <https://forum.kirupa.com/t/customising-the-mouse-cursor-but-constraining-its-active-area/159100>\
**Category:** Uncategorized\
**Created:** [August 14, 2005, 9:18pm UTC](https://forum.kirupa.com/t/customising-the-mouse-cursor-but-constraining-its-active-area/159100 "2005-08-14T21:18:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enforcer73](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@enforcer73](https://forum.kirupa.com/u/enforcer73)\
**Post date:** [August 14, 2005, 9:18pm UTC](https://forum.kirupa.com/t/customising-the-mouse-cursor-but-constraining-its-active-area/159100/1 "2005-08-14T21:18:26Z")

</div>

Hi guys,

quick question.

I know how to change the look of the mouse cursor in flash.  
(create a movie clip with the desired pointer in it. Assign this code to it:

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

What I want to be able to do is only have this custom mouse cursor become active in certain areas of the flash file. I.e only active in the top half yet not active in the bottom half.

I guess in the code, you have to constrain/limit the co-ordinates of the mouse pointer, but im not sure of the code.

Anyway, any help would be appreciated.

Enforcer 73
