# swapDepth issue

**URL:** https://forum.kirupa.com/t/swapdepth-issue/331663
**Category:** flash
**Created:** [September 20, 2013, 9:23pm UTC](https://forum.kirupa.com/t/swapdepth-issue/331663 "2013-09-20T21:23:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pistelli](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@pistelli](https://forum.kirupa.com/u/pistelli)
#### Post date: [September 20, 2013, 9:23pm UTC](https://forum.kirupa.com/t/swapdepth-issue/331663/1 "2013-09-20T21:23:17Z")

</div>

Hi !  
I`m trying to make a game where I drag and drop items from an inventory to scene. If the item doesn´t hit its target, it goes back to inventory when released. The problem is after I click and drag any item and release it and move to another scene the item I dragged duplicate itself in inventory. So far I have 3 items but the problem occurs always on 1st item I drag. I.E. I have a circle, a star and a square. If I drag the circle, release it and move 2 scenes to left or right, I can drag it again, but a circle copy remains in inventory. The star and square works ok. I`m attaching a fla.  
Sure someone will help me.  
Thanks in advance.
