Simple startDrag question

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

Welcome to kirupaForum, BoRn. :slight_smile:

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. Thank you.

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

scotty(-:

okay,

the fla should be included in this reply…

thx again!

BoRn

…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. :wink:

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