setInterval for a photo gallery

Hi !
I found a very good script : http://www.flash-game-design.com/flash-tutorials/triple-scroll-gallery.html
with the actions script code here : http://www.flash-game-design.com/flash-tutorials/3scrollGallery-flash-tutorial-3.html
and it works great !
The problem is that I want it to automatically play (and continue to play forever) when the movie starts AND stop when one thumb is pressed.
I modified the code like this :

 
order = [["0", "1", "2", "3", "4", "5", "6", "7"], 
  ["6", "0", "5", "7", "3", "1", "2", "4"], 
  ["4", "7", "5", "2", "0", "3", "6", "1"]];
for (var j = 0; j<order.length; j++) {
 var i = this.createEmptyMovieClip("images"+j, j);
 var m = this.attachMovie("mask", "mask"+j, 100+j);
 m._x = 224
 target0=target1=target2=223;
 m._y = 57+(90*j);
 i._y = 57;
 i.setMask(m);
 for (var k = 0; k<order[0].length; k++) {
  var img = i.attachMovie("image"+order[j][k], "image"+k, 1000+k);
  img._x = (img._width*k);
 
  var thumb = this["thumb"+order[j][k]];  
  thumb["pos"+j] = target1+(k*-img._width);
  thumb.onPress = function() {
   _root.target0 = this.pos0;
   _root.target1 = this.pos1;
   _root.target2 = this.pos2;
  };
  thumb.onRollOver = function() {
   this._alpha = 60;
  };
  thumb.onRollOut = function() {
   this._alpha = 100;
  };
 }
}
 
target0 = thumb4.pos0;
target1 = thumb4.pos1;
target2 = thumb4.pos2;
speed = 10;
 
function compte(j) {
thumbcible = ["thumb"+j];
target0 = thumbcible.pos0;
target1 = thumbcible.pos1;
target2 = thumbcible.pos2;
speed = 10;
//trace(thumbcible);
}
for (var j = 0; j<order[0].length; j++) {
var mon_interval = setInterval(compte(j), 10000);
if (j > order[0].length){
clearInterval (mon_interval);
}
}
 
this.onEnterFrame = function() {
 images0._x += ((target0)-images0._x)/speed;
 images1._x += ((target1)-images1._x)/speed;
 images2._x += ((target2)-images2._x)/speed;
};

But it doesn’t works…
Thanks for all your help!