Assigning multiple functions through loop

Hello one and all.

I have many buttons on my stage that all need to have a different function assigned to them. Each of these buttons lives within a movieClip. Here is the code i am using:

for (i = 1; i<88; i++){
     myClip["btn"+i].onRelease = function (){
          _root.callConst(*);
     }
}

The idea is that there is 88 buttons all called btn1-btn88. And i want to assign code to each of them that results in an onRelease function that calls an external function with a variable that corresponds to its button number.

What is happening now is that code is being corresponed to each button (yay!), but the variable that is being passed by all of them is the final value of ā€œiā€ (or ā€œ88ā€ in this particular case).

What am i missing?

Thanks in advance,
newbie