Check, if the event is triggered by for example printf, if it is, I think it should be you._animdist and not my.
I actually doubt that it can look good to animate an object in an event, as it should look quite jerky, but at least you should see something. It would probably be better, to just notify the player in some way, that he was hit and then react to it with a complete animation cycle.