# Draggin a SWF

**URL:** <https://forum.kirupa.com/t/draggin-a-swf/84792>\
**Category:** Uncategorized\
**Created:** [March 30, 2005, 3:39pm UTC](https://forum.kirupa.com/t/draggin-a-swf/84792 "2005-03-30T15:39:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exedus](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Exedus](https://forum.kirupa.com/u/Exedus)\
**Post date:** [March 30, 2005, 3:39pm UTC](https://forum.kirupa.com/t/draggin-a-swf/84792/1 "2005-03-30T15:39:43Z")

</div>

OK I have this script in to drag a movie clip with the mouse. BUT, how do I make it so that when you release the mouse button the clip stops dragging?

clip.onMouseDown = function() {  
if(this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) { //checks to see if the mouse clicked this clip  
this.startDrag(false); //start dragging the clip  
}  
}

That’s what I have in already.

One more problem I just discovered. Is there any way posible to get dynamic text to show up underneath a mask?
