How can you start an animation from an event?

This is also related to this topic: