# Temporarily disable buttons?

**URL:** <https://forum.kirupa.com/t/temporarily-disable-buttons/6689>\
**Category:** Uncategorized\
**Created:** [October 14, 2002, 11:22am UTC](https://forum.kirupa.com/t/temporarily-disable-buttons/6689 "2002-10-14T11:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huggerFanta](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@huggerFanta](https://forum.kirupa.com/u/huggerFanta)\
**Post date:** [October 14, 2002, 11:22am UTC](https://forum.kirupa.com/t/temporarily-disable-buttons/6689/1 "2002-10-14T11:22:17Z")

</div>

Hello KirupaFourm!  
I´ve got a question for you!

I have a few buttons in my movie that I whant to temporarily disable.

This is how I whant it to work:

1. When you click the buttun i should perform what I tell it to do, but after that I dont want to be able to click the same button again.

2. When clickg another button, I whant the other buttons to be enabled, is this possible???

Thanks for helping me out!!  
huggerFanta

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 14, 2002, 12:25pm UTC](https://forum.kirupa.com/t/temporarily-disable-buttons/6689/2 "2002-10-14T12:25:35Z")

</div>

This is done very easily!  
There might be some other ways but…  
For the first button (that will enable the others and disable itself)

```php

on(release/press/whatever) {
if(_root.firstbtn) {
<what it is supposed to do>
_root.firstbtn = false;
}

```

and put an action \_root.firstbtn = true; into some frame in your movie …or somewhere

And you can disable/enable the other ones as well the same way you disabled this one (note that to enable \_root.\<variable\> = **true** ; you have to change “false” to “true”)

I think you’ve got it now… =)
