# Hopefully Easy Variable Question?

**URL:** <https://forum.kirupa.com/t/hopefully-easy-variable-question/253163>\
**Category:** flash\
**Created:** [February 27, 2008, 7:19pm UTC](https://forum.kirupa.com/t/hopefully-easy-variable-question/253163 "2008-02-27T19:19:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ibanez271](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@Ibanez271](https://forum.kirupa.com/u/Ibanez271)\
**Post date:** [February 27, 2008, 7:19pm UTC](https://forum.kirupa.com/t/hopefully-easy-variable-question/253163/1 "2008-02-27T19:19:14Z")

</div>

I have a set of 5 buttons named

sysAdmin1Btn  
sysAdmin2Btn  
sysAdmin3Btn  
sysAdmin4Btn  
sysAdmin5Btn

Is there a way to have a counter variable be put in place of the number and still be able to access the var?  
Ex.

```auto
 
var count:int = 0;
for(var int:i = 0; i < 5; ++i)
{
   //I want to be able to access all the var's through this, maybe something like
   //this even though it does not work?
   sysAdmin{count+1}Btn.visible = false;
}

```
