random button var not working with switch statement
I've got a random button on the stage fading in. I'm trying to test which button is fading in because I have different URL's depending on which button it is. Below is the code I am using, which doesn't generate any errors...just doesn't work. I'm able to trace the correct button, but my switch statements aren't working. I'm not sure if it's a syntax thing or another problem. Thanks!!
var currentImage:MovieClip;
var arrGrowing:Array = new Array(resume_mc, magazine_mc,suitcase_mc, monopoly_mc, superhero_mc, hat_mc,
chair_mc, books_mc, lightbulb_mc);
for(var i=0;i<arrGrowing.length;i++){
arrGrowing.alpha = 0;
arrGrowing.buttonMode=true;
arrGrowing.addEventListener(MouseEvent.CLICK, onButtonClick);
}
function initLoop():void {
currentImage = arrGrowing[Math.floor(Math.random()*arrGrowing.length)];
var exitTween:Tween=new Tween(currentImage,"alpha",Regular.easeOut,0,1,12,false);
}