Question about motion in Action script

for example, I have an object, and I want that when I click on it, it will make a 360 rotation.

how I write it? how can I control on the speed rotation

thanks…