# Make a loaded swf dragable

**URL:** <https://forum.kirupa.com/t/make-a-loaded-swf-dragable/165277>\
**Category:** Uncategorized\
**Created:** [October 10, 2005, 12:16am UTC](https://forum.kirupa.com/t/make-a-loaded-swf-dragable/165277 "2005-10-10T00:16:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ditti](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@ditti](https://forum.kirupa.com/u/ditti)\
**Post date:** [October 10, 2005, 12:16am UTC](https://forum.kirupa.com/t/make-a-loaded-swf-dragable/165277/1 "2005-10-10T00:16:33Z")

</div>

Hello!

I have tried for quite a while to make a loaded swf dragable.  
I have a main movie.  
In the main movie I have a button (load\_btn) which on press load a swf (loaded.swf) into an empty movieclip called holder.  
In the loaded movie I have a button called drag.  
I want the loaded swf to be dragable when I press the button drag.  
Is it possible. Can someone help me with this??

```auto
 
_root.load_btn.onPress=function() {
_root.createEmptyMovieClip('holder',_root.getNextHighestDepth());
_root.holder._x = 150;
_root.holder._y=100;
with(_root.holder){
 loadMovie("loaded.swf");
 }
 }
 
 
holder.drag.onPress=function() {				
startDrag(holder);
 }
	  
holder.drag.onRelease=function() {
stopDrag();

```
