# Dragging a button?

**URL:** <https://forum.kirupa.com/t/dragging-a-button/114222>\
**Category:** Uncategorized\
**Created:** [June 26, 2004, 2:32am UTC](https://forum.kirupa.com/t/dragging-a-button/114222 "2004-06-26T02:32:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MTsoul](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@MTsoul](https://forum.kirupa.com/u/MTsoul)\
**Post date:** [June 26, 2004, 2:32am UTC](https://forum.kirupa.com/t/dragging-a-button/114222/1 "2004-06-26T02:32:08Z")

</div>

Hm Ok. Is there anyway I can drag a button?

I have a button with the following code:

```auto

on (press) {
	Mouse.hide();
	startDrag (this, true);
}
on (release, releaseOutside, dragOut) {
	Mouse.show();
	stopDrag ();
}

```

However, dragging the button doesn’t work. All pressing it does, is dragging the entire movie, not just the button. It’s probably because the button can’t be named, and cant be dragged. If not, how can i do this?

_EDIT_ NEVERMIND, i put it in a movie clip and it worked 😉
