# Drag and drop target stuck to mouse - help!- see swf

**URL:** <https://forum.kirupa.com/t/drag-and-drop-target-stuck-to-mouse-help-see-swf/190186>\
**Category:** Uncategorized\
**Created:** [June 9, 2006, 10:31am UTC](https://forum.kirupa.com/t/drag-and-drop-target-stuck-to-mouse-help-see-swf/190186 "2006-06-09T10:31:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Largo](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@Largo](https://forum.kirupa.com/u/Largo)\
**Post date:** [June 9, 2006, 10:31am UTC](https://forum.kirupa.com/t/drag-and-drop-target-stuck-to-mouse-help-see-swf/190186/1 "2006-06-09T10:31:30Z")

</div>

Hi, i´ve been going through some tutorials and samples of “drag and drop” flash movies and I always come apon the same bug. The [COLOR=red] **drop target** [/COLOR] gets [COLOR=red] **“stuck”** [/COLOR] to the mouse, and when I click the target it just drops down and doesn´t return to its orig. position. This mostly happens when the target in the [COLOR=red] **“lower order”** [/COLOR] is [COLOR=red] **droped behind** [/COLOR] a target that is [COLOR=red] **“in front of it”** [/COLOR] Now I have used the

```auto
 this.swapDepths(_root.getNextHighestDepth());

```

to fix the [COLOR=red] **“order”** [/COLOR] problem but still the problem some times happens. - _You can see the problem in the fla/swf if you drag on of the “lower order targets” under the “front targets”._

Does any one know if there is a way to fix this…?
