Activate animation on click on the different object

how to turn on animation on object when the user clicks on some other object?