# Drag and drop UNDER a movie

**URL:** <https://forum.kirupa.com/t/drag-and-drop-under-a-movie/204248>\
**Category:** flash\
**Created:** [October 18, 2006, 11:42am UTC](https://forum.kirupa.com/t/drag-and-drop-under-a-movie/204248 "2006-10-18T11:42:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![masster](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/masster/32/627_2.png) [@masster](https://forum.kirupa.com/u/masster)\
**Post date:** [October 18, 2006, 11:42am UTC](https://forum.kirupa.com/t/drag-and-drop-under-a-movie/204248/1 "2006-10-18T11:42:59Z")

</div>

Hi,  
This might be simple, but… I don’t know, judge for yourself.  
So I have this movie that I drag around my stage and check if dropped on a target using this code:

on (press) {  
startDrag(this, true);  
origX = this.\_x;  
origY = this.\_y;  
}  
on (release) {  
stopDrag();  
var drop:String = this.\_droptarget;  
if (drop.substr(1, 4) == ‘hole’) {  
this.\_x = origX;  
this.\_y = origY;  
} else {  
this.\_x = origX;  
this.\_y = origY;  
}  
}  
Problem is that if I drop (release mouse) while my dragged movie is UNDER another movie having a higher depth, stopDrag() has no effect. How can I solve this issue?  
Thanks
