# Some help appreciated with AS

**URL:** <https://forum.kirupa.com/t/some-help-appreciated-with-as/193489>\
**Category:** Uncategorized\
**Created:** [July 13, 2006, 5:15pm UTC](https://forum.kirupa.com/t/some-help-appreciated-with-as/193489 "2006-07-13T17:15:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alejoca](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alejoca](https://forum.kirupa.com/u/alejoca)\
**Post date:** [July 13, 2006, 5:15pm UTC](https://forum.kirupa.com/t/some-help-appreciated-with-as/193489/1 "2006-07-13T17:15:14Z")

</div>

Hi, everyone!  
i´m trying to enable/disable several buttons on a single click instead of writting…

on (press) {  
btn\_inicio.enabled= false  
btn\_1.enabled= true  
btn\_2.enabled= true  
btn\_3.enabled= true  
btn\_4.enabled= true  
btn\_i5.enabled= true

}

exist any way to make someting like this to simplify my code? … to apply the same property change to several movies/buttons

on (press) {  
btn\_inicio.enabled= false  
((btn\_1) && (btn\_2) && (btn\_3) && (btn\_4)&& (btn\_5)).enabled=true  
}  
any help appreciated  
thanks in advance !
