codice:
larghezzamovie = Stage.width;
posSin = 1;
vel = 0;
dimImm = 100;
selezione._y = 150;
letto = false;
leggi = function () {
	nuovo = new XML();
	nuovo.ignoreWhite = true;
	nuovo.load("file.xml");
	nuovo.onLoad = function(success) {
		if (success) {
			nfoto = this.childNodes.length;
			posDes = nfoto;
			for (i=0; i<nfoto; i++) {
				_root.attachMovie("mc", "mc"+(i+1), i+1);
				_root["mc"+(i+1)]._x = dimImm*i;
				_root["mc"+(i+1)]._y = 150;
				_root["mc"+(i+1)].etichetta.text = this.childNodes[i].attributes.descrizione;
				_root["mc"+(i+1)].a = this.childNodes[i].attributes.swf;
				_root["mc"+(i+1)].contenitore.loadMovie(this.childNodes[i].attributes.photo);
				_root["mc"+(i+1)]._alpha = 50;
			}
			_root.selezione.swapDepths(i+1);
			letto = true;
		} else {
			_root.didascalia.text = "errore di lettura";
		}
	};
};
leggi();
_root.onMouseMove = function() {
	x = _root._xmouse;
	y = _root._ymouse;
	if (y>150 && y<250 && x>=0 && x<=larghezzamovie) {
		vel = -(Math.round((x-(larghezzamovie/2))/10));
	}
};
_root.onEnterFrame = function() {
	if (letto) {
		for (i=1; i<=nfoto; i++) {
			_root["mc"+i]._x += vel;
		}
		if (vel>0 && _root["mc"+posSin]._x>0) {
			_root["mc"+posDes]._x = _root["mc"+posSin]._x-dimImm;
			posSin = posDes;
			posDes--;
			if (posDes == 0) {
				posDes = nfoto;
			}
		}
		if (vel<0 && _root["mc"+posSin]._x<=-dimImm) {
			_root["mc"+posSin]._x = _root["mc"+posDes]._x+dimImm;
			posDes = posSin;
			posSin++;
			if (posSin>nfoto) {
				posSin = 1;
			}
		}
	}
};
aggiungi quel codice in rosso