# Limited Drag and Drop

**URL:** <https://forum.kirupa.com/t/limited-drag-and-drop/305895>\
**Category:** flash\
**Created:** [March 5, 2010, 8:07am UTC](https://forum.kirupa.com/t/limited-drag-and-drop/305895 "2010-03-05T08:07:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpxnamja](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Post date:** [March 5, 2010, 8:07am UTC](https://forum.kirupa.com/t/limited-drag-and-drop/305895/1 "2010-03-05T08:07:44Z")

</div>

Hello, quick question

In the game [spank the monkey](http://www.spank.tm/), how would I achieve the drag and drop functionality of the game?

specifications:

[LIST]  
[_]Press the hand to enable drag and drop  
[_]As soon as user drags the hand out of the flash movie, the hand is released, despite whether or not the user’s mouse is still pressed.  
[\*]If the user’s mouse is still pressed even after coming back to the flash screen the hand does not respond until pressed again.  
[/LIST]  
I tried multiple things but to no avail.  
One of my attempts involved having a constant onMouseMove event handler that flagged a “out\_of\_bound” area, but mc.onPress = function(){ //drag } does not respond after the initial press.

Help is greatly appreciated. :thumb:
