# Drag 'n drop problem using function

**URL:** <https://forum.kirupa.com/t/drag-n-drop-problem-using-function/189882>\
**Category:** Uncategorized\
**Created:** [June 6, 2006, 10:55pm UTC](https://forum.kirupa.com/t/drag-n-drop-problem-using-function/189882 "2006-06-06T22:55:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGKbrian](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AGKbrian](https://forum.kirupa.com/u/AGKbrian)\
**Post date:** [June 6, 2006, 10:55pm UTC](https://forum.kirupa.com/t/drag-n-drop-problem-using-function/189882/1 "2006-06-06T22:55:59Z")

</div>

I have a movie clip called al\_mc in there i have a drag & drop and it works

```auto
 
on (release) {
 stopDrag();
 _root.stopThis(13);
}

```

then on the main timeline i have this function, and it keeps telling me that it is wrong. Any idea what i can do to fix the problem?

```auto

function stopThis (aNum) {
  trace (elementNum[aNum])
 if (_droptarget == "/"+elementNum[aNum]+"_mc") {
  fadeOut(22);
 } else {
  reponse = "Sorry, try again"
 }
}

```

---

<div class="post-metadata">

**Author:** ![phorte](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@phorte](https://forum.kirupa.com/u/phorte)\
**Post date:** [June 7, 2006, 1:02am UTC](https://forum.kirupa.com/t/drag-n-drop-problem-using-function/189882/2 "2006-06-07T01:02:20Z")

</div>

Mind if i take a look at your fla? i think im missing out on some important info.
