Nav links don't work

Can anyone tell me why my nav links aren’t working?
I have 28 in total and they work fine when I use,


mcNavBtn1.onRelease = function() {
mcCheck1.gotoAndStop("on");
};

but, I don’t want to have to paste the code 28 times, so I’m trying this,


for(var i:Number = 1; i<29; i++) {
mcNavBtn*.onRelease = function() {
mcCheck*.gotoAndStop("on");
};
}

trace(mcNavBtn*); //comes back as undefined
I’ve also tried the following, which seems to be closer to working,


var btnArray:Array = new Array();
var checkArray:Array = new Array();
for(var i:Number = 1; i<29; i++) {
btnArray* = "mcNavBtn"+i;
checkArray* = "mcCheck"+i;
 
trace(btnArray*);
 
btnArray*.onRelease = function() {
checkArray*.gotoAndStop("on");
};
}