# Is it possible to disable buttons for a set time then enable them again?

**URL:** https://forum.kirupa.com/t/is-it-possible-to-disable-buttons-for-a-set-time-then-enable-them-again/201921
**Category:** flash
**Created:** [September 26, 2006, 10:25am UTC](https://forum.kirupa.com/t/is-it-possible-to-disable-buttons-for-a-set-time-then-enable-them-again/201921 "2006-09-26T10:25:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)
#### Post date: [September 26, 2006, 10:25am UTC](https://forum.kirupa.com/t/is-it-possible-to-disable-buttons-for-a-set-time-then-enable-them-again/201921/1 "2006-09-26T10:25:31Z")

</div>

I am currently using this code to disable and enable some buttons. However on the page i’m doing I require the buttons to become inactive for just 15 seconds then become active again. Is this possible?

[FONT=Courier New]

```auto
btnArray = [_root.btns_cntr.homeMC.home_btn, _root.btns_cntr.profileMC.profile_btn, _root.btns_cntr.servicesMC.services_btn, 
   _root.btns_cntr.productsMC.products_btn, _root.btns_cntr.weddingsMC.weddings_btn, _root.btns_cntr.colourMC.colour_btn,
   _root.btns_cntr.tariffsMC.tariffs_btn, _root.btns_cntr.bookMC.book_btn, _root.btns_cntr.contactMC.contact_btn, 
   _root.main_cntr.btns_mc.organic_btn, _root.main_cntr.btns_mc.loreal_btn]
MovieClip.prototype.disableBtns = function(btnarray){
 for(i=0;i<btnarray.length;i++){
 btnarray*.enabled = false;
 }} 
MovieClip.prototype.enableBtns = function(btnarray){
 for(i=0;i<btnarray.length;i++){
 btnarray*.enabled = true;
 }} 

```

[/FONT]

Claire
