Need help how to loop the images through xml in scroll panel

Hi,there,

       I'm newbie for the flash and i'd greatly appreciate if anyone help me.Here is my problem.I'd like to make images through xml in vertical scroll panel.I'd like to show four images in the stage.It's scrolling all the time and when the mouse is rollover,it's just rollover.U know the user can stop when the mouse is rollover.Maybe it's like a carousel.And when the mouse is rollout,it's looping or scrolling up and down again.My problem is i don't know how to loop the images.Can anyone help me out of this.Much apprecite it.Sorry for my english. 

Code:

y_middle = Stage.height/2;
tn_group.tn._visible = false;
tn_group.setMask( tn_area );
tn_alpha_default = 70;

for( var i = 0; i < photo_thumbnail.length; i++ )
{
tn_group.tn.duplicateMovieClip(“tn”+i, i);

tn_group[“tn”+i].tn_pic.loadMovie( filepath +photo_thumbnail* );
tn_group[“tn”+i]._x = tn._x;
tn_group[“tn”+i]._y = i * 100;
tn_group[“tn”+i].tn_pic._alpha = tn_alpha_default;
tn_group[“tn”+i].tn_no = i;

tn_group[“tn”+i].tn_button.onRollOver = function()
{
this._parent.tn_pic._alpha = 100;
}
tn_group[“tn”+i].tn_button.onRollOut = function()
{

  this._parent.tn_pic._alpha = tn_alpha_default;

}

}

onEnterFrame = function()
{
x_mouse = _xmouse;
y_mouse = _ymouse;

if( x_mouse > tn_group._x - 10 and x_mouse < tn_group._x + tn_group._width + 10 )
{
y_speed = -(y_mouse - y_middle ) /20;

  if( y_mouse &gt; y_middle )
  {
     
     
     
     if( tn_group._y &gt; tn_area._height - tn_group._height + tn_area._y )
        tn_group._y+=y_speed;
  }
  else
  {
     if( tn_group._y &lt; tn_area._y )
        tn_group._y+=y_speed;
  }

}
}