Action scripts

**i want to call 6 new thumbs in my xml gallery and remove previous 6 thumbs by mouse on(press) event…
what should i do for this… **
[CENTER]my script is …
[/CENTER]
import mx.transitions.Tween;
import mx.transitions.Zoom.;
import caurina.transitions.
;
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;

myGalleryXML.load(“26-demo.xml”);
myGalleryXML.onLoad = function()
{
_root.gallery_x = myGalleryXML.firstChild.attributes.gallery_x = 100;
_root.gallery_y = myGalleryXML.firstChild.attributes.gallery_y;
_root.gallery_width = myGalleryXML.firstChild.attributes.gallery_width;
_root.gallery_height = myGalleryXML.firstChild.attributes.gallery_height;
_root.myImages = myGalleryXML.firstChild.childNodes;
_root.myImagesTotal = myImages.length;
_root.thumb_height = myGalleryXML.firstChild.attributes.thumb_height;
_root.thumb_width = myGalleryXML.firstChild.attributes.thumb_width;

_root.full_x = myGalleryXML.firstChild.attributes.full_x;
_root.full_y = myGalleryXML.firstChild.attributes.full_y;

callThumbs();

};

function callThumbs()
{
_root.createEmptyMovieClip(“wall”,_root.getNextHighestDepth());
wall._x = _root.gallery_x = 0;
wall._y = _root.gallery_y = 230;
wall.addEventListener(MouseEvent.CLICK);

var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);

** for (i = 0; i < 6; i++)** // want to change here
{
thumbURL = myImages*.attributes.thumb_url;
myThumb_mc = wall.createEmptyMovieClip(i, wall.getNextHighestDepth());
myThumb_mc._x = _root.thumb_height * i;
myThumb_mc._x = _root.thumb_position = -3260 + i * 765;

    clipLoader.loadClip("shop/" + thumbURL,myThumb_mc);

                             ** [U]my Next button script is....[/U]**

on(press){
var s;
if(s==null)
s=0;
else
s+=6;
}[CENTER]my Next button script is…[/CENTER]
on(press){
var e;
if(e==null)
e=_root.s;
else
e-=6;
}