Help to optimize my code

Hi,
i’ve got 7 MC ( as buttons )
i’ve got this code on the first MC :

[color=Sienna]for (r=1; r<=7; r++) {
this.[color=Green]pur1[/color].onRollOver = function() {
this._parent.[color=SeaGreen]txt1[/color].slide(110, 0.2);
if (r<>[color=SeaGreen]1[/color]) {
this._parent[“txt”+r].slide(600, 0.2);
}
};
}

[color=Black]it works great.
but i want the same code for other 6 buttons.
the only things to change is in green ( pur2,pur3,etc… )

i don’t to make 7 times the same code, so i think i can optimize it !

i try to use array, but don’t found the fast and good solution.

can you help me ?

[/color][/color]