myArray_array = [{mcName:"aaronkotowski", mcText:"Aaron Kotowski", url:"http://www.aaronkotowski.com"},
{mcName:"alanlevenson", mcText:"Alan Levenson", url:"http://www.alanlevenson.com/main.phpm"},
{mcName:"albertnormandin", mcText:"Albert Normandin", url:"http://www.albertnormandin.com"},
{mcName:"aliciarose", mcText:"Alicia Rose", url:"http://www.aliciajrosephotography.com"}];
function initButts() {
for (var i = 0; i<myArray_array.length; i++) {
var myMc = this[myArray_array[i].mcName];
myMc.fade.person.text = this.myArray_array[i].mcText;
myMc.myRoot = this;
myMc.index = i;
myMc.onRollOver = function() {
this.myRoot.doHighlight(this);
};
myMc.onRollOut = function() {
this.myRoot.doUnhighlight(this);
};
myMc.onRelease = function() {
getURL(this.myRoot.myArray_array[this.index].url, "_blank");
};
}
}
function doHighlight(mc){
for (var i = 0; i<myArray_array.length; i++) {
if(myArray_array[i].mcName == mc._name){
mc.fade.person.textColor = 0xffffff;
gotoAndStop(myArray_array[i].mcName);
}else{
mc.fade.person.textColor = 0x666666;
}
}
}
function doUnhighlight(mc){
for (var i = 0; i<myArray_array.length; i++) {
if(mc.fade.person.textColor = 0x666666) {
mc.fade.person.textColor = 0xffffff;
}
}
}
initButts();