# Mouse.hide(); with constrain

**URL:** <https://forum.kirupa.com/t/mouse-hide-with-constrain/175749>\
**Category:** flash\
**Created:** [January 17, 2006, 2:49pm UTC](https://forum.kirupa.com/t/mouse-hide-with-constrain/175749 "2006-01-17T14:49:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greendog](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@greendog](https://forum.kirupa.com/u/greendog)\
**Post date:** [January 17, 2006, 2:49pm UTC](https://forum.kirupa.com/t/mouse-hide-with-constrain/175749/1 "2006-01-17T14:49:11Z")

</div>

OK I’m creating one of those Crane vending machines where you grab a toy with the claw and drop it in the hole. I have it working pretty well except for when I mouse over the area that I have the drag code and the Mouse.hide(); code. Everything works pretty well except that I see a mouse pointer still (not a hand). Here is the code I have on the button:

```auto
on (rollOver) {
    Mouse.hide();
    startDrag("crane", true, 166, 3.5, 368.7, 3.5);
}
on (rollOut) {
    Mouse.show();
    stopDrag();
}

```

I suspect it has something to do with my startDrag constraints.  
Anyone know how to fix this?
