# Button disable from click

**URL:** https://forum.kirupa.com/t/button-disable-from-click/200149
**Category:** flash
**Created:** [September 9, 2006, 2:50am UTC](https://forum.kirupa.com/t/button-disable-from-click/200149 "2006-09-09T02:50:42Z")
**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:50am UTC](https://forum.kirupa.com/t/button-disable-from-click/200149/1 "2006-09-09T02:50:42Z")

</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
