this is my 5th attempt to get make simple drag & drop function.
i have attached the flash file please go thru it and tell me why the remove movie clip function itsnt working.
this is code on the emty_mc [movie clip on the layer drag] which i want to remove if it is droped on the target[et_ncf ] .
onClipEvent (load) {
this.attachMovie(“nt_mc”, ‘graphic’, 1);
clipX = this._x;
clipY = this._y;
}
onClipEvent (mouseDown) {
if (this, hitTest(_root._xmouse, _root._ymouse)) {
this.attachMovie(“nts_mc”, ‘graphic’, 1);
this.startDrag();
this.dragging = true;
}
}
onClipEvent (mouseUp) {
stopDrag();
if (eval(_root.empty_mc._droptarget) != _root.et_ncf) {
this.removeMovieClip();
} else {
this.attachMovie("nt_mc", 'graphic', 1);
this._x = clipX;
this._y = clipy;
}
}