Assigning / writing the contents of a variable

strange question
so im defining a set of complex movieclips with onPress and onRelease etc using an array of them, and then looping through the array and giving them all the same code.

the only problem is in the code for my buttons is one piece that needs to be unique for each button. when i assign all the buttons with N they get the code N instead of what N really is.

i need to hardcode/write the actual value of N into their onPress function instead of just the variable N. is there any way to do this?

i cant really think of anything clever…