# Drag a Movieclip

**URL:** <https://forum.kirupa.com/t/drag-a-movieclip/240158>\
**Category:** flash\
**Created:** [September 29, 2007, 10:04pm UTC](https://forum.kirupa.com/t/drag-a-movieclip/240158 "2007-09-29T22:04:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [September 29, 2007, 10:04pm UTC](https://forum.kirupa.com/t/drag-a-movieclip/240158/1 "2007-09-29T22:04:05Z")

</div>

I load an image onto the stage and attempt to write this code to allow the user to click and drag the image, but it doesn’t do anything!

```auto

_root.createEmptyMovieClip("image",1);
image.loadMovie("photo1.jpg");
container._x = 0;
container._y = 0;

image.onPress = function() {
	startDrag(_root.image, false) ;
}

image.onRelease = function () {
	_root.image.stopDrag () ;
}

```
