# Simple startDrag question

**URL:** <https://forum.kirupa.com/t/simple-startdrag-question/45155>\
**Category:** Uncategorized\
**Created:** [March 11, 2004, 2:56pm UTC](https://forum.kirupa.com/t/simple-startdrag-question/45155 "2004-03-11T14:56:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoRn](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@BoRn](https://forum.kirupa.com/u/BoRn)\
**Post date:** [March 11, 2004, 2:56pm UTC](https://forum.kirupa.com/t/simple-startdrag-question/45155/1 "2004-03-11T14:56:55Z")

</div>

Hi there,

i want to use the simple startDrag-function to drag a movieclip. when the option to lock the movieclip is set to false, there’s no problem but when i set this option to true, so the movieclip should follow the mouse locked to the center, my movieclip just disappears…

i used this code:

onClipEvent (mouseDown) {  
startDrag("", false); //true doesn’t work…  
}  
onClipEvent (mouseUp) {  
stopDrag();  
}

it would be nice if someone could help me out with this tiny problem!!!

thx

BoRn

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2004, 4:36pm UTC](https://forum.kirupa.com/t/simple-startdrag-question/45155/2 "2004-03-11T16:36:19Z")

</div>

Welcome to kirupaForum, BoRn. 🙂

It would be much easier if you could provide your FLA, I don’t see anything wrong with the code. :-/

**PS.** Please use the ActionScript tag ([**AS][**/AS]) to display your code, and read the following link: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7457](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7457). Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2004, 4:37pm UTC](https://forum.kirupa.com/t/simple-startdrag-question/45155/3 "2004-03-11T16:37:52Z")

</div>

Weird, it’s working here…  
Can you post your fla?

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2004, 5:20pm UTC](https://forum.kirupa.com/t/simple-startdrag-question/45155/4 "2004-03-11T17:20:22Z")

</div>

okay,

the fla should be included in this reply…

thx again!

BoRn

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2004, 5:55pm UTC](https://forum.kirupa.com/t/simple-startdrag-question/45155/5 "2004-03-11T17:55:09Z")

</div>

…When you set the [font=courier new]_lock_[/font] parameter to [font=courier new]true[/font], the registration point (the little circle that appears on the symbol when it’s selected) of the movie clip is locked the mouse position; all you have to do is move the registration point to the center of the rectangle. See attachment. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2004, 6:33pm UTC](https://forum.kirupa.com/t/simple-startdrag-question/45155/6 "2004-03-11T18:33:01Z")

</div>

Gee! Thanx mate!!  
i knew it would be a little detail, but they often take the most of your time… Unless you use this great kirupa-forum with great people like you!!!

Pues, muchas gracias!!!

BoRn
