# How to read a \_droptarget variable

**URL:** <https://forum.kirupa.com/t/how-to-read-a--droptarget-variable/225941>\
**Category:** Uncategorized\
**Created:** [May 16, 2007, 9:39pm UTC](https://forum.kirupa.com/t/how-to-read-a--droptarget-variable/225941 "2007-05-16T21:39:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollu](https://avatars.discourse-cdn.com/v4/letter/o/ee59a6/32.png) [@ollu](https://forum.kirupa.com/u/ollu)\
**Post date:** [May 16, 2007, 9:39pm UTC](https://forum.kirupa.com/t/how-to-read-a--droptarget-variable/225941/1 "2007-05-16T21:39:34Z")

</div>

Hi,  
I’m doin’ a note training game, were you’re supposed to drop notes in the right places. To find out if you droped your note in the right place i figured that I would store a variable in each note that tells me which note I’m dragging. Now I want to compare that variable with the variable stored in each droptarget.

For example:  
the note to be dragged’s variable: \_root.a\_mc.deNote = a;  
the droptarget’s variable: \_root.a\_drop.dropNote = a;

when I now drop the “\_root.a\_mc” on the “\_root.a\_drop” I want to compare the two variables, and I thought that this was possible via \_droptarget, but I cannot get access to the variable “\_root.a\_drop.dropNote”. I’ve tried the eval() function with no luck.

Does anyone know if this is possible and if so how?

(see attached working copy)

thanks, Ollu
