Help! Control scaling in Array using event.currentTarget

Hi everyone. I’m trying to tween six Movieclip (using TweenLite) in an Array to where they scale up when pressed. When another is pressed it scales up and the others will scale down. I’m having trouble getting them to do this consistently. This is probably a minor fix for most of you, but I have been tackling this for two days. Any help would be appreciated. Here is the code:

import flash.events.MouseEvent;
import flash.display.MovieClip;
stop();

//tweens
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*; 
import com.greensock.plugins.TweenPlugin;


TweenLite.to(brainFade, 1.5, {scaleX:1, scaleY:1, ease:Expo.easeOut});

///BUTTONS ARRAY
var nvArryLocat:Array=[mainInsight.dog,mainInsight.mikes,mainInsight.snakeOil,mainInsight.indian,mainInsight.women,mainInsight.pig];
//var destArray:Array = ["TheCompetition","Real EstateMedia", "TheSalesStigma", "HeadHunting", "SmearTactics", "FranChising"];
function setLocat():void {
	for (var a:int=0; a< nvArryLocat.length; a++) {
		nvArryLocat[a].id=a;
		nvArryLocat[a].buttonMode=true;
		nvArryLocat[a].mouseChildren=false;
		nvArryLocat[a].mouseEnabled=true;
		nvArryLocat[a].addEventListener(MouseEvent.ROLL_OVER,nvArryOver);
		nvArryLocat[a].addEventListener(MouseEvent.ROLL_OUT,nvArryOut);
		nvArryLocat[a].addEventListener(MouseEvent.CLICK,nvArryPress);
		trace(nvArryLocat[a]);
		trace("Xposition ="+nvArryLocat[a].x);
		trace("Yposition ="+nvArryLocat[a].y);

	}
}
setLocat();
//
function nvArryOver(event:MouseEvent):void {
	TweenLite.to(event.currentTarget, .5,{alpha:.5, ease:Expo.easeOut,overwrite:false});		
}
function nvArryOut(event:MouseEvent):void {
	TweenLite.to(event.currentTarget, .5,{alpha:1, ease:Expo.easeOut,overwrite:false});	
}
function nvArryPress(event:MouseEvent):void {
	TweenLite.to(event.currentTarget, .5,{x:event.currentTarget.width/mainInsight.width,y:event.currentTarget.height/mainInsight.height, alpha:1,scaleX:1, scaleY:1, ease:Elastic.easeOut, delay:.5});
	trace("you clicked " + event.target.name);
	for (var a:int=0; a< nvArryLocat.length; a++) {
		if (event.currentTarget == nvArryLocat[a]){
			nvArryLocat[a].buttonMode=false;
			nvArryLocat[a].mouseEnabled=false;
			nvArryLocat[a].removeEventListener(MouseEvent.ROLL_OVER,nvArryOver);
			nvArryLocat[a].removeEventListener(MouseEvent.ROLL_OUT,nvArryOut);
			nvArryLocat[a].removeEventListener(MouseEvent.CLICK,nvArryPress);
			TweenLite.to(brain, 1, {alpha:0});
			if(event.currentTarget==nvArryLocat[0]){
				insightText.gotoAndPlay("The Competition");
				header.gotoAndPlay("headerTwo");
				
			}
			if(event.currentTarget==nvArryLocat[1]){
				insightText.gotoAndPlay("Real Estate Media");
				header.gotoAndPlay("headerThree");
				
			}
			if(event.currentTarget==nvArryLocat[2]){
				insightText.gotoAndPlay("The Sales Stigma");
				header.gotoAndPlay("headerFour");
				
			}
			if(event.currentTarget==nvArryLocat[3]){
				insightText.gotoAndPlay("Headhunting");
				header.gotoAndPlay("headerFive");
				
			}
			if(event.currentTarget==nvArryLocat[4]){
				insightText.gotoAndPlay("Smear Tactics");
				header.gotoAndPlay("headerSix");
				
			}
			
			if(event.currentTarget==nvArryLocat[5]){
				insightText.gotoAndPlay("Franchising");
				header.gotoAndPlay("headerSeven");
				
			}
	
			nvArryLocat[a].buttonMode=true;
			nvArryLocat[a].mouseEnabled=true;
			nvArryLocat[a].addEventListener(MouseEvent.ROLL_OVER,nvArryOver);
			nvArryLocat[a].addEventListener(MouseEvent.ROLL_OUT,nvArryOut);
			nvArryLocat[a].addEventListener(MouseEvent.CLICK,nvArryPress);
			if (mainInsight.dog.x>=event.currentTarget.width/mainInsight.width) {
			TweenLite.to(mainInsight.dog, 1, {y:mainInsight.homeOne.y,x:mainInsight.homeOne.x,scaleX:.30, scaleY:.30, ease:Elastic.easeOut});
			}
			if (mainInsight.mikes.x>=event.currentTarget.width/mainInsight.width) {
			TweenLite.to(mainInsight.mikes, 1, {y:mainInsight.homeTwo.y,x:mainInsight.homeTwo.x,scaleX:.25, scaleY:.25, ease:Elastic.easeOut});
			}
			if (mainInsight.snakeOil.x>=event.currentTarget.width/mainInsight.width) {
			TweenLite.to(mainInsight.snakeOil, 1, {y:mainInsight.homeThree.y,x:mainInsight.homeThree.x,scaleX:.26, scaleY:.26, ease:Elastic.easeOut});
			}
			if (mainInsight.indian.x>=event.currentTarget.width/mainInsight.width) {
			TweenLite.to(mainInsight.indian, 1, {y:mainInsight.homeFour.y,x:mainInsight.homeFour.x,scaleX:.31, scaleY:.31, ease:Elastic.easeOut});
			}
			if (mainInsight.women.x>=event.currentTarget.width/mainInsight.width) {
			TweenLite.to(mainInsight.women, 1, {y:mainInsight.homeFive.y,x:mainInsight.homeFive.x, scaleX:.37,scaleY:.37, ease:Elastic.easeOut});
			}
			if (mainInsight.pig.buttonMode==false) {
			TweenLite.to(mainInsight.pig, 1, {y:mainInsight.homeSix.y,x:mainInsight.homeSix.x,scaleX:.35, scaleY:.35, ease:Elastic.easeOut});
			
			}
		
		}
	}
}


My file is too big to attach so I’ve placed it here:

darthrayzor.com/testSites/tweenTestFinal.fla

darthrayzor.com/testSites/tweenTestFinal.swf

I am on a deadline and am out of ideas so if you can help that would be appreciated.

rmcnaugh… :smirk: