# Drag and drop

**URL:** <https://forum.kirupa.com/t/drag-and-drop/43302>\
**Category:** Uncategorized\
**Created:** [February 20, 2004, 9:04pm UTC](https://forum.kirupa.com/t/drag-and-drop/43302 "2004-02-20T21:04:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixiesparkles13](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pixiesparkles13](https://forum.kirupa.com/u/pixiesparkles13)\
**Post date:** [February 20, 2004, 9:04pm UTC](https://forum.kirupa.com/t/drag-and-drop/43302/1 "2004-02-20T21:04:50Z")

</div>

Hello

I have created a drag and drop flash movie…  
There are two choices where the user can drag  
a number of different items…if its the wrong choice  
than the item returns back to its orignal spot.  
This works fine, but I was wondering how I can put a  
response like “sorry wrong choice” or “thats correct”  
Also after all the items are in thier correct places, I would like  
to have something come up and say “congratulations, you  
have matched all the items successfully!”

Here is the code I am using so far…

on (press) {  
startDrag(this);  
this.swapDepths(100);

}  
on (release) {  
stopDrag();  
if (this.\_droptarget=="/target1") {  
\_root.business.gotoAndStop(2)  
} else {  
setProperty(this, \_x, 42);  
setProperty(this, \_y, 127);  
}  
}

Gracious thanks in advance for any help!

* * *

_Sparkling the World_
