Target mcs

I’m writing a whack a mole deal, and I’m stuck on one point.

I need to create mcs that appear at a given xy if three is no mc at that xy for more that 31 frames, and each of the mcs called in this way need to call a function. I’ve figured ou the function whereby the targets give points and delete themselves when clicked on, but I don’t know how to get a movie clip created dynamically to call a function.

any tips?