# Disarming the drag

**URL:** <https://forum.kirupa.com/t/disarming-the-drag/236543>\
**Category:** flash\
**Created:** [August 21, 2007, 7:24pm UTC](https://forum.kirupa.com/t/disarming-the-drag/236543 "2007-08-21T19:24:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpr](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mpr](https://forum.kirupa.com/u/mpr)\
**Post date:** [August 21, 2007, 7:24pm UTC](https://forum.kirupa.com/t/disarming-the-drag/236543/1 "2007-08-21T19:24:33Z")

</div>

I have a movieclip with a drag/drop script with it and once dropped in a specific target, it goes to a specific frame. Works fine.  
My question is how can one stop the drag feature once it is in the proper location? I tried using stopDrag(); but this doesn’t seem to work outright.

The name of my movieclips are price1, area1, and area2.

Here’s the code for one of the buttons:

```auto
on (press) {
	startDrag("_root.price1");
}
on (release) {
	stopDrag();
	if (_root.price1._droptarget == "/area1") {
		_root.area1.gotoAndPlay(2);
	}
	if (_root.price1._droptarget == "/area2") {
		_root.area2.gotoAndPlay(22);
	}

```
