# Really need help! drag and drop and snap to a target

**URL:** <https://forum.kirupa.com/t/really-need-help-drag-and-drop-and-snap-to-a-target/139289>\
**Category:** Uncategorized\
**Created:** [March 1, 2005, 11:14pm UTC](https://forum.kirupa.com/t/really-need-help-drag-and-drop-and-snap-to-a-target/139289 "2005-03-01T23:14:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirk\_netiq](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kirk\_netiq](https://forum.kirupa.com/u/kirk_netiq)\
**Post date:** [March 1, 2005, 11:14pm UTC](https://forum.kirupa.com/t/really-need-help-drag-and-drop-and-snap-to-a-target/139289/1 "2005-03-01T23:14:01Z")

</div>

I have 17 objects I need to drag and drop to 17 targets. I would like to have the objects snap to the targets (which could change color) when then are close by and give an message that says “Correct”. If the user puts the object on the wrong target they would get a message that says, “Sorry that is incorrect”. Could someone show me what the ActionScript for this would look like.

Thank you!
