Post Preview:
onClipEvent(mouseUp) {
in the movie clip you are dragging put this code in the same place as the stopDrag command:
if(_root[_root.mcDragged._droptarget]._name==“mcTarget”){
_root.nDroppedOnTarget++;
}
where ‘nDroppedOnTarget’ increments by 1 every time you drop ‘mcDragged’ onto ‘mcTarget’.
jeremy
thanks for helping, first of all.
i used this code:
onClipEvent (mouseUp) {
        if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
                this.stopDrag(true);
                if(_root[_root.ca._droptarget]._name==“gare”){
                var n;
                _root.n++;
                trace(_root.n);
                } 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