# Specific DRAG and DROP tutorial

**URL:** <https://forum.kirupa.com/t/specific-drag-and-drop-tutorial/14372>\
**Category:** flash\
**Created:** [February 25, 2003, 5:24pm UTC](https://forum.kirupa.com/t/specific-drag-and-drop-tutorial/14372 "2003-02-25T17:24:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coyotekel](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@coyotekel](https://forum.kirupa.com/u/coyotekel)\
**Post date:** [February 25, 2003, 5:24pm UTC](https://forum.kirupa.com/t/specific-drag-and-drop-tutorial/14372/1 "2003-02-25T17:24:47Z")

</div>

I am looking for a good drag and drop tutorial that will explain how to make a d&d that will force the user to move objects into a specific location and then drop it there. Otherwise the object will return to it’s home.

So far I can’t come up with anything like that. Anyone?:cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 5:27pm UTC](https://forum.kirupa.com/t/specific-drag-and-drop-tutorial/14372/2 "2003-02-25T17:27:22Z")

</div>

I have a similar kind of thing here…

If you open the zip file you should find an fla. That’s a very basic drag and drop type game, where you can move things around. You’re only able to drop things in the boxes, anywhere else and the piece will return to it’s original place.

Take the code to pieces, see how it works. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 6:35pm UTC](https://forum.kirupa.com/t/specific-drag-and-drop-tutorial/14372/3 "2003-02-25T18:35:33Z")

</div>

Thanks I’ll check it out and see if I can work with it’s code.

K

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 7:06pm UTC](https://forum.kirupa.com/t/specific-drag-and-drop-tutorial/14372/4 "2003-02-25T19:06:36Z")

</div>

Ok what I am trying to do is make the text snap back into place if dropped anywhere other than the box. If dropped in the box it should stay there.

Please Help!!!

:cowboy:
