Well, that's your problem. You are setting the _targetPiece properties to things that don't exist (yet?). If those target clips are added later, you will have to set the _targetPiece properties after they are around to reference. That means you'd have to keep references to tn, ap, and cw in a bigger scope so that you can refer to them at a later time too.