Drag counter

Post Preview:
i want to trace() the number of mc’s i drop into another mc, but i dont know how to make it, because the counter i made also counts…mouse clicks!
here’s my code:

onClipEvent(mouseUp) {
if (this.hitTest(_root._xmouse,_root._ymouse,false)) {
var v;

in the movie clip you are dragging put this code in the same place as the stopDrag command:
where ‘nDroppedOnTarget’ increments by 1 every time you drop ‘mcDragged’ onto ‘mcTarget’.

thanks for helping, first of all.
i used this code:

onClipEvent (mouseUp) {
&nbsp &nbsp &nbsp &nbsp if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp this.stopDrag(true);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if(_root[_root.ca._droptarget]._name==“gare”){
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp var n;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp _root.n++;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp trace(_root.n);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp } else {trace(“hmm”);

where “ca” is the mc’s name that i drag and “gare” the mc’s name where mcs are draged into.
they all reside in the main timeline.
I tested with a trace(), but only the else statement works, which means nothing is beeing counted…
Where is it going wrong?
I confess i’m confused with all those _root.things
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
&nbsp &nbsp &nbsp &nbsp