Having trouble dragging a movie clip

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¦