# Simple movieClip drag?

**URL:** https://forum.kirupa.com/t/simple-movieclip-drag/204133
**Category:** Uncategorized
**Created:** [October 17, 2006, 12:01pm UTC](https://forum.kirupa.com/t/simple-movieclip-drag/204133 "2006-10-17T12:01:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)
#### Post date: [October 17, 2006, 12:01pm UTC](https://forum.kirupa.com/t/simple-movieclip-drag/204133/1 "2006-10-17T12:01:13Z")

</div>

This is a simple script loading a swf to the stage, but I am having trouble getting the movieClip to drag. It’s probably something simple, but I can’t see it. Can someone point me in the right direction?

```auto

test_btn.onRelease = function() {
 piece = "bed";
 createEmptyMovieClip("item_mc", this.getNextHighestDepth());
 item_mc.createEmptyMovieClip("container_mc", 0);
 item_mc.container_mc.loadMovie("decals/"+piece+".swf");
 item_mc.container_mc._x = 200;
 item_mc.container_mc._y = 100;
};
item_mc.onPress = function() {
 this.startDrag();
 trace("test");
};
//
item_mc.onRelease = function() {
 stopDrag();
};

```
