# Drag behind a mask

**URL:** https://forum.kirupa.com/t/drag-behind-a-mask/155711
**Category:** flash
**Created:** [July 19, 2005, 7:38pm UTC](https://forum.kirupa.com/t/drag-behind-a-mask/155711 "2005-07-19T19:38:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marc0047](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@marc0047](https://forum.kirupa.com/u/marc0047)
#### Post date: [July 19, 2005, 7:38pm UTC](https://forum.kirupa.com/t/drag-behind-a-mask/155711/1 "2005-07-19T19:38:42Z")

</div>

I have a working draggable movieclip called “copy” which is inside another movieclip called “copymask”. The “copymask” movieclip contains a mask so to only make part of “copy” clip’s content viewable.

The drag (onpress) and drop (onrelease) commands work as long as the cursor is within the masked space. But if the user drags and releases the “copy” clip beyond the masked space, the clip sticks to the cursor.

I would like the “copy” clip to stop dragging onRelease at any moment, masked and in the unmasked area. Is there a way to do this?
