In my current game project, I have need of hitTest-ing an object on the main timeline to one embedded in another MC, using a shapeFlag. My code was/is:
MC1.onEnterFrame = function() {
if(this.hitTest(_root.MC2.MC3._x, _root.MC2.MC3._y, true)) {
_root.myFunction(this);
}
}
Or something close akin to that. However, it doesn’t work. I suspect this is because MC3’s x and y coordinates are in relation to the reference point thingy of MC2. But, I don’t know how to fix it. Thanks much!