# Need help with project

**URL:** https://forum.kirupa.com/t/need-help-with-project/321962
**Category:** Uncategorized
**Created:** [May 5, 2011, 5:08pm UTC](https://forum.kirupa.com/t/need-help-with-project/321962 "2011-05-05T17:08:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![8BitBoyx](https://avatars.discourse-cdn.com/v4/letter/8/8c91f0/32.png) [@8BitBoyx](https://forum.kirupa.com/u/8BitBoyx)
#### Post date: [May 5, 2011, 5:08pm UTC](https://forum.kirupa.com/t/need-help-with-project/321962/1 "2011-05-05T17:08:26Z")

</div>

```auto
var ar:Array = [Floorplan1Bedroom1_Mc, Floorplan1Bedroom2_Mc, Floorplan1Bathroom_Mc, Floorplan1LivingRoom_Mc, Floorplan1Kitchen_Mc, Floorplan1Toilet_Mc];

for (var i:int = 0; i < ar.length; i++) {
	ar*.addEventListener(MouseEvent.MOUSE_OUT, outHandler);
	ar*.addEventListener(MouseEvent.MOUSE_OVER, overHandler);
}

function outHandler(e:MouseEvent):void {
	for (var i:int = 0; i < ar.length; i++) {
		TweenMax.to(ar*, 0.2, {colorTransform:{tint:0xff0000, tintAmount:0.0}});
	}
	
}

function overHandler(e:MouseEvent):void {
	for (var i:int = 0; i < ar.length; i++) {
		TweenMax.to(ar*, 0.2, {colorTransform:{tint:0xff0000, tintAmount:0.5}});
	}
}

```

Hi, I got a problem. When I hover over a Mc it needs to hover over one at a time and not at the same time es it does in swf file. I got a solution but it cost me a lot code to write so I wanted to try to solve it in an other way but don’t know how.

swf: [http://dl.dropbox.com/u/11355063/project.swf](http://dl.dropbox.com/u/11355063/project.swf)
