I have a movieclip with a drag/drop script with it and once dropped in a specific target, it goes to a specific frame. Works fine.
My question is how can one stop the drag feature once it is in the proper location? I tried using stopDrag(); but this doesn’t seem to work outright.
The name of my movieclips are price1, area1, and area2.
Here’s the code for one of the buttons:
on (press) {
startDrag("_root.price1");
}
on (release) {
stopDrag();
if (_root.price1._droptarget == "/area1") {
_root.area1.gotoAndPlay(2);
}
if (_root.price1._droptarget == "/area2") {
_root.area2.gotoAndPlay(22);
}