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.