Dragging a button?

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

I have a button with the following code:

on (press) {
	startDrag (this, true);
on (release, releaseOutside, dragOut) {
	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 :wink: