# Deselecting previous button on nav click

**URL:** https://forum.kirupa.com/t/deselecting-previous-button-on-nav-click/289964
**Category:** flash
**Created:** [June 8, 2009, 4:23am UTC](https://forum.kirupa.com/t/deselecting-previous-button-on-nav-click/289964 "2009-06-08T04:23:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flashdaddy](https://avatars.discourse-cdn.com/v4/letter/f/e36b37/32.png) [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)
#### Post date: [June 8, 2009, 4:23am UTC](https://forum.kirupa.com/t/deselecting-previous-button-on-nav-click/289964/1 "2009-06-08T04:23:58Z")

</div>

Hi All,

I wasn’t really sure how to title this one, but my issue is, I have a navigation with three buttons. When one button is clicked, it turns a certain color. When the next one is clicked, that one turns a different color, and the previous one turns back to it’s original color. So far when I click, the buttons turns colors, and then when i click on the other, the previous one doesn’t turn back. Can someone help me out with this one. Here is my code so far:

```auto

function navClick (e:MouseEvent) {
	
	var mc = e.currentTarget;	
	
	switch (mc.name) {
		
		case "link_num1":
		projectClick();
		TweenLite.to(mc.nav_color, .3, {tint:0xCCCCCC})
		break;
		
		case "link_num2":
		whoWeAreClick();
		TweenLite.to(mc.nav_color, .3, {tint:0xffffff})
		break;
		
		case "link_num3":
		commClick();
		TweenLite.to(mc.nav_color, .3, {tint:0xFF00000})
		break;
		
		default:
		TweenLite.to(mc.nav_color, .3, {tint:0x1A1A1A})
		
	}
	
}

 

```
