# Yet another button problem

**URL:** https://forum.kirupa.com/t/yet-another-button-problem/183827
**Category:** Uncategorized
**Created:** [March 30, 2006, 1:32pm UTC](https://forum.kirupa.com/t/yet-another-button-problem/183827 "2006-03-30T13:32:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jericho](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jericho](https://forum.kirupa.com/u/jericho)
#### Post date: [March 30, 2006, 1:32pm UTC](https://forum.kirupa.com/t/yet-another-button-problem/183827/1 "2006-03-30T13:32:04Z")

</div>

i have a button that when pressed, will disable itself so it is no longer clickable. But how do i code it in such a way that it will become disable in it’s ‘down’ state instead of it’s ‘up’ state?

here is the code:

on (release) {  
\_root.aboutme\_btn.enabled= false;  
}

thanks!

---

<div class="post-metadata">

### Author: ![mickshake](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mickshake/32/1353_2.png) [@mickshake](https://forum.kirupa.com/u/mickshake)
#### Post date: [March 30, 2006, 2:05pm UTC](https://forum.kirupa.com/t/yet-another-button-problem/183827/2 "2006-03-30T14:05:09Z")

</div>

I’m pretty sure there is no disable feature, I don’t use “buttons” I use movie clips for everything. But you could try something like this

```auto

onClipEvent(load) {
this.clickable=1;
}

on(release) {
  if(this.clickable==1) {
    this.clickable=0;
    // now it's disabled
  } else {
    this.clickable=1;
    // now it's enabled
  }
}

```
