# Drag and Drop Action Scripting

**URL:** <https://forum.kirupa.com/t/drag-and-drop-action-scripting/280635>\
**Category:** flash\
**Created:** [January 29, 2009, 7:06pm UTC](https://forum.kirupa.com/t/drag-and-drop-action-scripting/280635 "2009-01-29T19:06:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MC\_Klaw](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@MC\_Klaw](https://forum.kirupa.com/u/MC_Klaw)\
**Post date:** [January 29, 2009, 7:06pm UTC](https://forum.kirupa.com/t/drag-and-drop-action-scripting/280635/1 "2009-01-29T19:06:26Z")

</div>

Hey everyone, I am loading the movie below into level 500.

The coding below is not working, I know the problem is with (\_level500.classf\_mc.\_droptarget == “/targetclassf\_mc”)

Not sure how to setup the “/targetclassf\_mc” I have tried \_level500.targetclassf\_mc and nothing.

Here is the full coding…

on (press) {  
startDrag ("\_level500.classf\_mc");  
\_level500.reply\_txt.text=""  
}

on (release) {  
stopDrag ();  
if (\_level500.classf\_mc.\_droptarget == “/targetclassf\_mc”) {  
\_level500.classf\_mc.\_x=631.8;  
\_level500.classf\_mc.\_y=465.8;  
\_level500.reply\_txt.text=“Correct”  
}  
else{  
\_level500.classf\_mc.\_x=82.3;  
\_level500.classf\_mc.\_y=266.6;  
\_level500.reply\_txt.text=“Try Again”

```
}

```

}
