# Mouse (grab)

**URL:** <https://forum.kirupa.com/t/mouse-grab/321571>\
**Category:** flash\
**Created:** [April 24, 2011, 1:36am UTC](https://forum.kirupa.com/t/mouse-grab/321571 "2011-04-24T01:36:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkLink](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DarkLink](https://forum.kirupa.com/u/DarkLink)\
**Post date:** [April 24, 2011, 1:36am UTC](https://forum.kirupa.com/t/mouse-grab/321571/1 "2011-04-24T01:36:13Z")

</div>

I’m trying to create an interactive mouse that mimics the hand cursor you see in pdf files and other programs. There’s two movieclips I want to use for the cursor. The open hand and the grab. I can get the cursor to work on the open hand, but can’t get it to work when I press and want the open hand to change to the grab cursor. Here’s my code:

onClipEvent (load) {  
Mouse.hide();  
startDrag(this, true);  
}  
onClipEvent (mouseMove){  
updateafterEvent();  
}

onPress = function(){  
openhand.\_visible = false;  
grab.\_visible = true;  
}  
onRelease = function(){  
openhand.\_visible = true;  
grab.\_visible = false;  
}

Any help would be greatly appreciated!! :hobbes:
