How is it done, draggable fullscreen [renamed]

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