# Another Question... but not the last :)

**URL:** <https://forum.kirupa.com/t/another-question-but-not-the-last/13884>\
**Category:** Uncategorized\
**Created:** [February 19, 2003, 12:31pm UTC](https://forum.kirupa.com/t/another-question-but-not-the-last/13884 "2003-02-19T12:31:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashSwimmer](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@FlashSwimmer](https://forum.kirupa.com/u/FlashSwimmer)\
**Post date:** [February 19, 2003, 12:31pm UTC](https://forum.kirupa.com/t/another-question-but-not-the-last/13884/1 "2003-02-19T12:31:19Z")

</div>

hi guys, :skull:  
there are 4 buttonts in the \_root and… it’s name as btn\_0 through btn\_3

```php
_global.maxbtn = 4; 
function t() { 
   for (var p=0;p<_global.maxbtn;p++) { 
      _level0["btn_"+p].enabled = true; 
   } 
} 
function f() { 
   t(); 
   this.enabled = false; 
} 
for (var i=0;i<_global.maxbtn;i++) { 
   _level0["btn_"+i].onRelease = f; 
} 

```

what does this function do in buttons… :hangover:

---

<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:** [February 19, 2003, 1:12pm UTC](https://forum.kirupa.com/t/another-question-but-not-the-last/13884/2 "2003-02-19T13:12:31Z")

</div>

Hi there,

function t() is just a dummy for init() means it makes all buttons enabled - so you can click on it

function f() is to make a single button disable, the way he do it is to enabled all button first (called function t()) then disable the one you just press (oops, release I mean).

Hope this make sense.

John

---

<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:** [February 19, 2003, 2:04pm UTC](https://forum.kirupa.com/t/another-question-but-not-the-last/13884/3 "2003-02-19T14:04:57Z")

</div>

hi JGizmo …  
many thanx for your quick replay…:love:
