# Dragging

**URL:** <https://forum.kirupa.com/t/dragging/281877>\
**Category:** Uncategorized\
**Created:** [February 14, 2009, 6:57am UTC](https://forum.kirupa.com/t/dragging/281877 "2009-02-14T06:57:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michdd](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@michdd](https://forum.kirupa.com/u/michdd)\
**Post date:** [February 14, 2009, 6:57am UTC](https://forum.kirupa.com/t/dragging/281877/1 "2009-02-14T06:57:47Z")

</div>

Using simple functions like this to drag and drop something works perfectly:

```auto

                                messageBox.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
				messageBox.addEventListener(MouseEvent.MOUSE_UP, dropIt);
				
				function pickUp(event:MouseEvent):void {
					event.target.startDrag(true);
				}
				function dropIt(event:MouseEvent):void {
					event.target.stopDrag();
				}

```

But when you click on the object anywhere it moves it and drags it from its registration point. Is there any way to disable this so that it will drag it from anywhere I click on it?
