# Drop Target

**URL:** <https://forum.kirupa.com/t/drop-target/28229>\
**Category:** Uncategorized\
**Created:** [August 11, 2003, 5:29pm UTC](https://forum.kirupa.com/t/drop-target/28229 "2003-08-11T17:29:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandsp5](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@grandsp5](https://forum.kirupa.com/u/grandsp5)\
**Post date:** [August 11, 2003, 5:29pm UTC](https://forum.kirupa.com/t/drop-target/28229/1 "2003-08-11T17:29:35Z")

</div>

In the drop target syntax, if (\_root.clip.\_droptarget == “/target”)  
what is the slash for before the instance name of the target? Will \_root.clip.droptarget == “target” work just as well?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2003, 5:37pm UTC](https://forum.kirupa.com/t/drop-target/28229/2 "2003-08-11T17:37:11Z")

</div>

The “/” is because (\_root.clip.\_droptarget == “/target”) returns the path in slash syntax notation of the “target” mc where the “clip” was dropped.  
You can also use

```auto
if (eval(_root.clip._droptarget) == _root.target) {
	//do your stuff;
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2003, 5:41pm UTC](https://forum.kirupa.com/t/drop-target/28229/3 "2003-08-11T17:41:03Z")

</div>

oh ok. So that was the old flash 5 way of doing it then. The dot notation will work fine if i am running mx. what does the eval in that statement do? you cant just check  
[AS]  
if (\_root.clip.droptarget == root.target){  
//whatever  
}

?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2003, 5:50pm UTC](https://forum.kirupa.com/t/drop-target/28229/4 "2003-08-11T17:50:57Z")

</div>

_eval_ converts it from slash syntax to a dot syntax reference.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2003, 5:53pm UTC](https://forum.kirupa.com/t/drop-target/28229/5 "2003-08-11T17:53:47Z")

</div>

oh ok. thanks a bunch claudio 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2003, 5:55pm UTC](https://forum.kirupa.com/t/drop-target/28229/6 "2003-08-11T17:55:06Z")

</div>

welcome :thumb:
