# Drag a movie clip

**URL:** <https://forum.kirupa.com/t/drag-a-movie-clip/314950>\
**Category:** flash\
**Created:** [October 13, 2010, 3:11am UTC](https://forum.kirupa.com/t/drag-a-movie-clip/314950 "2010-10-13T03:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newtome](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@newtome](https://forum.kirupa.com/u/newtome)\
**Post date:** [October 13, 2010, 3:11am UTC](https://forum.kirupa.com/t/drag-a-movie-clip/314950/1 "2010-10-13T03:11:46Z")

</div>

When my main movie starts, the firsts thing it does is load swf for the user to enter their user name and password. I want this movie (and subsequent such movies) to be able to be dragged around the stage. There are some excellent tutorials & examples on the web but none seems to address my situation. The code:

this.createEmptyMovieClip(“lh”, this.getNextHighestDepth());  
lh.\_x = 200;  
lh.\_y = 200;  
var launcher\_mcl:MovieClipLoader = new MovieClipLoader();  
launcher\_mcl.loadClip(“LogIn.swf”, lh);

lh.onPress=function()  
{  
trace(“start drag”);  
this.startDrag();  
}  
lh.onRelease=lh.onReleaseOutside=function()  
{  
trace(“stop drag”);  
this.stopDrag();  
}

If I click on my movie and drag, I don’t see any trace. Is this because lh doesn’t have an onPress event? Is my objective unachievable?
