Custom Play On Action Script

Hi i am trying to make a combat game i have the animations i want to use i just dont know how to make them activate so say i have a punch animation i want it so it plays on click and does damage when the hand makes contact with another player