hitTest and draggable MCs
**These codes are in the draggable MC: fish1_drag
Hi, this is my code:
onClipEvent (enterFrame) {
this.onPress = function() {
startDrag(this);
};
_root.UI1_mc.UI1_mc2.inv_mc.ISpace1.onEnterFrame = function() {
if (this.hitTest(fish1_drag)) {
stopDrag();
} else {
}
};
}
I keep jumbling it up so that one thing works but the other doesnt. But basicly I need it so that when I drag fish1_drag (instance name) over ISpace1 (which is within many MCs : _root.UI1_mc.UI1_mc2.inv_mc.ISpace1 but opens up so you can drag it over it) for it the drop on the ISpace1.
I have another MC in the library and il get that the attach to the ISpace1 but what im finding difficult is just being able to drag the fish1_drag over the ISpace1 and releasing.
Here is some other reandom code that I have in a comment on my AC panel:
/*
this.onRelease = function() {
stopDrag();
_root.UI1_mc.UI1_mc2.inv_mc.ISpace1.attachMovie("fish1_mc","attached1",this.getNextHighestDepth());
_root.invCount += 1;
updateAfterEvent(); // I probly dont need this updateAfterEvent. but its there anyway.
};
*/
Thanks please help, hope you understand my jibberish speech.