# Simplify this ;-)

**URL:** https://forum.kirupa.com/t/simplify-this/54785
**Category:** Uncategorized
**Created:** [June 17, 2004, 3:11pm UTC](https://forum.kirupa.com/t/simplify-this/54785 "2004-06-17T15:11:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![clwright\_2000](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@clwright\_2000](https://forum.kirupa.com/u/clwright_2000)
#### Post date: [June 17, 2004, 3:11pm UTC](https://forum.kirupa.com/t/simplify-this/54785/1 "2004-06-17T15:11:28Z")

</div>

:jail: Hi all,

Just wrote the following code and was wondering what the syntax would be to write it shorter.

Would really appreciate your help since im a bit pushed for time at the moment…

Cheers,

Claire

\_root.scroll.btn1.\_alpha = 30;  
\_root.scroll.btn1.enabled = false;

\_root.scroll.btn39.\_alpha = 30;  
\_root.scroll.btn39.enabled = false;

\_root.scroll.btn7.\_alpha = 30;  
\_root.scroll.btn7.enabled = false;

\_root.scroll.btn40.\_alpha = 30;  
\_root.scroll.btn40.enabled = false;
