# How is it done, draggable fullscreen \[renamed\]

**URL:** <https://forum.kirupa.com/t/how-is-it-done-draggable-fullscreen-renamed/183301>\
**Category:** flash\
**Created:** [March 25, 2006, 5:31pm UTC](https://forum.kirupa.com/t/how-is-it-done-draggable-fullscreen-renamed/183301 "2006-03-25T17:31:37Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![vini](https://avatars.discourse-cdn.com/v4/letter/v/c77e96/32.png) [@vini](https://forum.kirupa.com/u/vini)\
**Post date:** [April 2, 2006, 3:37am UTC](https://forum.kirupa.com/t/how-is-it-done-draggable-fullscreen-renamed/183301/21 "2006-04-02T03:37:21Z")

</div>

Create a button inside movie clip and put action on the button:

on (press) {  
startDrag ("");  
}  
on (release, releaseOutside) {  
stopDrag ();  
}

On the movie clip put this action:

onClipEvent (load) {  
\_x = 300;  
\_y = 300;  
}  
onClipEvent (mouseDown) {  
targetx = \_xmouse;  
targety = \_ymouse;  
}  
onClipEvent (enterFrame) {  
\_x += (targetx-\_x)/2;  
\_y += (targety-\_y)/2;  
}

//It has to work in this way. When i have time i will make work

[Previous page](https://forum.kirupa.com/t/how-is-it-done-draggable-fullscreen-renamed/183301.md?page=1)
