# Disable a button from click

**URL:** <https://forum.kirupa.com/t/disable-a-button-from-click/200148>\
**Category:** programming\
**Created:** [September 9, 2006, 2:49am UTC](https://forum.kirupa.com/t/disable-a-button-from-click/200148 "2006-09-09T02:49:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daytonatkf](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@daytonatkf](https://forum.kirupa.com/u/daytonatkf)\
**Post date:** [September 9, 2006, 2:49am UTC](https://forum.kirupa.com/t/disable-a-button-from-click/200148/1 "2006-09-09T02:49:29Z")

</div>

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
