fauzira
03-07-2007, 05:10 AM
I've problem to get mc name when hitTest, for example:
I drag box_mc to circle_mc and when box_mc droped on top of circle_mc the box_mc will know the name of mc bellow. But I don't want use _droptarget because when we drag mc to other mc the mouse pointer must on top of both mc.
this my code using droptarget, but this not fix my problems. :(
stop();
box.onPress = function () {
this.startDrag();
};
box.onRelease = function () {
this.stopDrag();
trace(this._droptarget);
};
I drag box_mc to circle_mc and when box_mc droped on top of circle_mc the box_mc will know the name of mc bellow. But I don't want use _droptarget because when we drag mc to other mc the mouse pointer must on top of both mc.
this my code using droptarget, but this not fix my problems. :(
stop();
box.onPress = function () {
this.startDrag();
};
box.onRelease = function () {
this.stopDrag();
trace(this._droptarget);
};