[FMX] Multi Drag Problem. Can't find answer

I’ve tried searching for the answer to this all over kirupa, but couldn’t find anything. Here’s the rundown:

Movieclip with a button inside it.

Button code:

on (press) {
pressing = 1;
}
on (release) {
pressing = 0;
}

Movieclip code:

onClipEvent (enterFrame) {
if (pressing) {
startDrag (this, true);
} else {
stopDrag();
}
}

Works great for one object. Does not work for two or more. Only the first object works properly no matter how many exist.

Please tell me what I’m missing.

Thanks,
ST

The startDrag() and stopDrag() functions are made to only work on one movie clip. To drag multiple you have to either define your own function (do some searching on this forum - I’ve seen this issue before) or, if you want to be able to drag multiple clips all at once (instead of each separately) what you can do is have a container clip that contains all the MCs you want to drag, then put the startDrag() and stopDrag() functions on the container clip and it will work on everything that clip contains.

yeah I dont think you searched hard enough. try searching for “Multiple Drag” Im sure a lot will come up