I created a variable: private var _hit:*;

I gave each object this statement: object._hit=hitgoal_mc (this is the instance name of the target). I then replaced _targetPiece in the if statement with _hit. That worked. Might not be the best solution, but it's good enough to get me away.

Hope this helps someone else.

Thomas