# Having trouble dragging a movie clip

**URL:** <https://forum.kirupa.com/t/having-trouble-dragging-a-movie-clip/31130>\
**Category:** flash\
**Created:** [September 18, 2003, 5:23pm UTC](https://forum.kirupa.com/t/having-trouble-dragging-a-movie-clip/31130 "2003-09-18T17:23:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wyatt](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@Wyatt](https://forum.kirupa.com/u/Wyatt)\
**Post date:** [September 18, 2003, 5:23pm UTC](https://forum.kirupa.com/t/having-trouble-dragging-a-movie-clip/31130/1 "2003-09-18T17:23:15Z")

</div>

I was doing the equilibrium tutorial, in special effects, and I could not make the movie clip object draggable, I added this code to the movie clip–

```
    on(press){
       startDrag(this);
    }
    on(release){
       stopDrag();
    }

```

But whenever I previewed it I got this output–

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: on handlers may not nest within other on handlers  
on (press) {

What code should I put in to make something draggable?

Thanks for the Help :nerd:

¦wyatt¦
