# Button Name Controlled by Variable

**URL:** https://forum.kirupa.com/t/button-name-controlled-by-variable/284006
**Category:** flash
**Created:** [March 13, 2009, 5:07pm UTC](https://forum.kirupa.com/t/button-name-controlled-by-variable/284006 "2009-03-13T17:07:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jo3\_14](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jo3\_14](https://forum.kirupa.com/u/jo3_14)
#### Post date: [March 13, 2009, 5:07pm UTC](https://forum.kirupa.com/t/button-name-controlled-by-variable/284006/1 "2009-03-13T17:07:34Z")

</div>

I have several buttons I need to turn on and off (visibility and alpha) but the function I have written that determines if a given button should be turned off works based on a few variables. I need to be able to control which button is turning on and off with these variables.

I have tried this (“btn” + i).\_visible or alpha but does not work. Does anyone know how I can accomplish this?
