PDA

View Full Version : simple startDrag question



BoRn
March 11th, 2004, 09:56 AM
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

kode
March 11th, 2004, 11:36 AM
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 () to display your code, and read the following link: http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7457. Thank you.

scotty
March 11th, 2004, 11:37 AM
Weird, it's working here...
Can you post your fla?

scotty(-:

BoRn
March 11th, 2004, 12:20 PM
okay,

the fla should be included in this reply...

thx again!

BoRn

kode
March 11th, 2004, 12:55 PM
...When you set the lock parameter to true, 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. ;)

BoRn
March 11th, 2004, 01:33 PM
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