# Click and drag coloured boxes

**URL:** <https://forum.kirupa.com/t/click-and-drag-coloured-boxes/325235>\
**Category:** flash\
**Created:** [October 4, 2011, 1:36am UTC](https://forum.kirupa.com/t/click-and-drag-coloured-boxes/325235 "2011-10-04T01:36:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_MacClure](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@Daniel\_MacClure](https://forum.kirupa.com/u/Daniel_MacClure)\
**Post date:** [October 4, 2011, 1:36am UTC](https://forum.kirupa.com/t/click-and-drag-coloured-boxes/325235/1 "2011-10-04T01:36:38Z")

</div>

Hi, Im trying to work out how i can reset a movieclip when theyre piled on each.

so far I have the 4 colours and 4 boxes you can drag them to, when you drop out side they reset but when dropped on a box they stack.

what i would like to do, is when theyre dropped onto a box the original box is then reset, replacing it with the new box, the old colour is then returned to its original location

Update: I could get them to go back when dropped on, but now i cant get the boxes to snap back into place when not on a box :s

File attached

Thankyou
