# Drag and Drop Dilemma

**URL:** <https://forum.kirupa.com/t/drag-and-drop-dilemma/175308>\
**Category:** flash\
**Created:** [January 13, 2006, 9:07am UTC](https://forum.kirupa.com/t/drag-and-drop-dilemma/175308 "2006-01-13T09:07:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CreativityAwait](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@CreativityAwait](https://forum.kirupa.com/u/CreativityAwait)\
**Post date:** [January 13, 2006, 9:07am UTC](https://forum.kirupa.com/t/drag-and-drop-dilemma/175308/1 "2006-01-13T09:07:22Z")

</div>

HI all,

I want to create a ‘matchstick game’ - i.e. “move 2 matchsticks to do… blah”.

I know that I will need to have the matchsticks in a position, and allow the user to move them around (using drag-drop).  
I think I will also need invisible ‘holders’ that the matchsticks can be dropped onto.

My problem is: How do I set the code so it is general enough so you can pick up any match stick and place it on any holder.  
I will also need to detect when the answer has been solved.

Hope you can help, Andy
