# Active/Inactive buttons

**URL:** https://forum.kirupa.com/t/active-inactive-buttons/191281
**Category:** flash
**Created:** [June 19, 2006, 10:56am UTC](https://forum.kirupa.com/t/active-inactive-buttons/191281 "2006-06-19T10:56:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hixen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hixen/32/2509_2.png) [@hixen](https://forum.kirupa.com/u/hixen)
#### Post date: [June 19, 2006, 10:56am UTC](https://forum.kirupa.com/t/active-inactive-buttons/191281/1 "2006-06-19T10:56:41Z")

</div>

Hi guys

pretty easy question i guess, but i’m clueless what is the best solution for it.  
also would like to say I’m pretty new in flash actionscript…

I got a standard navigation with a horizontal meny with 5 links.

home | products | about | contact | events

they are all made with standard buttons, with “Up”, “Over”, “Down” in different colors and assigned the instance names:

mHome\_btn  
mProducts\_btn  
mContact\_btn  
mEvents\_btn  
mAbout\_btn

At the moment there is no way to see what meny is active, since all the buttons are in the default state “Up”

I would like to find good solution using actionscript to control the different states (up,over,down) the buttons have, in my case it would be pretty much be “up” and “down”.

So is there any good way to controll this with actionscript, or do I have to find another solution? and what would that be? this is not a real code, just made up, but it pretty much explains what I would like to accomplish.

**on** Release.mHome\_btn **set** mHome\_btn = active(“Down”) **and** otherButtons inactive (“Up”

where otherButtons = mProducts\_btn, mContact\_btn , mEvents\_btn,  
mAbout\_btn

**home** | products | about | contact | events \<- home is active, the rest inactive  
home | products | about | **contact** | events \<- contact is active, the rest inactive

i think you guys understand…

I hope you guys understand what I would like to accompish, thx in advance and sorry for my noobness.

/best regards hixen
