Disable a button from click

i create a button using an image, i want to make the button to be click on first time only, inside the button there is a action script running a loop to generate some animation.

how do i make the button to be run for the first time the user click on the button? the second time the user click, the script will not be run, any idea , thanks