# Drag and Drop Game

**URL:** <https://forum.kirupa.com/t/drag-and-drop-game/221257>\
**Category:** flash\
**Created:** [April 2, 2007, 10:06pm UTC](https://forum.kirupa.com/t/drag-and-drop-game/221257 "2007-04-02T22:06:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [April 2, 2007, 10:06pm UTC](https://forum.kirupa.com/t/drag-and-drop-game/221257/1 "2007-04-02T22:06:14Z")

</div>

hi there kirupas!

i’m trying to create a drag and drop game, almost at the end but cant figure one thing out…  
i mean, i have several objects and several targets, everything works fine, but i’m trying to create a function that detects when ALL the objects have been placed in the corresponding target…and go to the “end” frame.

i cant figure out how to transform it in a if sentence that includes all the objects…  
any ideas?
