Drag, Drop and Snap Question


I am currently working on a game which includes a drag and drop timeline; however, I am unable to get the items to snap into their correct position. I can get the items to snap when dropped, they just do not snap into the center or in a proper alignment. They basically snap anywhere near the target and it looks really sloppy.

Does anyone know the code to make them snap to the center of the movie clip they are dropped to? Here is the code I am currently using:

on (press) {
startDrag ("_root.draft");

on (release) {
stopDrag ();
if (this.hitTest(_root.three)) {
//snaps to timeline
_root.draft._x = _root.three._x;
_root.draft._y = _root.three._y;



Any help would be greatly appreciated!


-Crystal :slight_smile: