AS Code Cleaning

I have no problem w/the following AS, it works exactly as I want it to. I see a very definite pattern here, where the mcX and the Writings_text[X] are the exact same number. I have tried to condense these numerous onRelease commands into one loop type structure with no luck.
[AS]_root.mc[COLOR=red]X[/COLOR].onRelease = function() {
loadVariablesNum(Writings_text[[COLOR=red]X[/COLOR]]+".txt", 0);
};[/AS]I would like to have only 1 onRelease function instead of repeating it however many # of times I have my mc’s duplicated.
I would appreciate any feedback concerning this.
[AS]for (i=0; i<=Writings_text.length-1; i++) {
duplicateMovieClip(shell_button, “mc”+i, i);
setProperty(“mc”+i, _x, x=5);
setProperty(“mc”+i, _y, y += 25);
_root[“mc”+i].link = Writings_text*;
}
_root.mc0.onRelease = function() {
loadVariablesNum(Writings_text[0]+".txt", 0);
};
_root.mc1.onRelease = function() {
loadVariablesNum(Writings_text[1]+".txt", 0);
};
_root.mc2.onRelease = function() {
loadVariablesNum(Writings_text[2]+".txt", 0);
};
_root.mc3.onRelease = function() {
loadVariablesNum(Writings_text[3]+".txt", 0);
};
_root.mc4.onRelease = function() {
loadVariablesNum(Writings_text[4]+".txt", 0);
};
_root.mc5.onRelease = function() {
loadVariablesNum(Writings_text[5]+".txt", 0);
};
_root.mc6.onRelease = function() {
loadVariablesNum(Writings_text[6]+".txt", 0);
};
_root.mc7.onRelease = function() {
loadVariablesNum(Writings_text[7]+".txt", 0);
};
_root.mc7.onRelease = function() {
loadVariablesNum(Writings_text[7]+".txt", 0);
};
_root.mc8.onRelease = function() {
loadVariablesNum(Writings_text[8]+".txt", 0);
};
stop();[/AS]