For loop and Buttons

Hello,

So I have this problem for a long time, and have no clue how to solve it.
I have several buttons on stage (8), and I want to add a slighty different action for everyone of them. How do I do that, All the buttons always get the last past of the “FOR”… HELP ME OUT, I know it’s problably very easy, please…


function loadThumbs(eventoUrl:String) {
 for(i=1; i<=9; i++) {
  temp = this["thumb_"+i];
  with (temp) {
   image = "fotos/"+eventoUrl+"/thumbs/"+i+".jpg";
   loadImages(image, temp);
   temp.onRollOver = function() {
    this.play();
    };
   temp.onPress    = function() {
       this.loadImages(image, image_big);
   };
  };
 };
};

loadImages() is a LoadMovieClip type function I created

Anyone? :red: