# Programmaticly hide buttons based on a Variable

**URL:** <https://forum.kirupa.com/t/programmaticly-hide-buttons-based-on-a-variable/328522>\
**Category:** flash\
**Created:** [May 23, 2012, 6:33am UTC](https://forum.kirupa.com/t/programmaticly-hide-buttons-based-on-a-variable/328522 "2012-05-23T06:33:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolai\_Crumb](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nikolai\_Crumb](https://forum.kirupa.com/u/Nikolai_Crumb)\
**Post date:** [May 23, 2012, 6:33am UTC](https://forum.kirupa.com/t/programmaticly-hide-buttons-based-on-a-variable/328522/1 "2012-05-23T06:33:30Z")

</div>

I have this idea for a RPG menu, the idea is all the player icons (buttons) start in the center and spiral out from the center. Ideally I’d like to Programically build/space them apart based on the size of the Current\_Party variable (ie party of 6, six nodes on the spiral, party of 12, 12 notes on the spiral) but i’d settle for having all possible party memember have a pre defined spit on the spiral and just programically hid the inactive memebers.

Any ideas?
