# Breadcrumb navigation with TweenMax

**URL:** https://forum.kirupa.com/t/breadcrumb-navigation-with-tweenmax/306664
**Category:** flash
**Created:** [March 19, 2010, 1:32pm UTC](https://forum.kirupa.com/t/breadcrumb-navigation-with-tweenmax/306664 "2010-03-19T13:32:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dimitree](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dimitree/32/2530_2.png) [@Dimitree](https://forum.kirupa.com/u/Dimitree)
#### Post date: [March 19, 2010, 1:32pm UTC](https://forum.kirupa.com/t/breadcrumb-navigation-with-tweenmax/306664/1 "2010-03-19T13:32:45Z")

</div>

I have an array of buttons on stage and a want when one if them is clicked to chage its tint.  
But when another one is clicked then the tint of the previous clicked button goes back to normal state , and eventually new clicked button’s tint change.  
I am using this code

```php

 var buttonsArray:Array = new Array(ai_btn, b_btn, c_btn); 
//Loop through the buttons array
for (var i:uint = 0; i < buttonsArray.length; i++) {
 
	//Add event listeners for the button
	
	buttonsArray*.addEventListener(MouseEvent.CLICK, buttonClicked);

}
        function buttonClicked(e:MouseEvent):void {
	var button:MovieClip = e.target as MovieClip;
	
	TweenMax.to(buttonsArray, .3, {tint: 0xFF0000});// this doesnt work properly

  
        TweenMax.to(button,1,{tint: 0x108ACB});
 
	
	trace(e.target.name + " was clicked!");
}

```

Is that possible to be done with TweenMax?
