Advanced 360pano help

Hi!

I need help with my code… I am developing a way to continuously scroll content on the screen. The catch is that only the content that is on the stage should be loaded. I’m almost there!! I have everything running perfect except sometimes you can see the gaps between the different scrolling tiles. I need help getting rid of the gaps! If anyone has any advice I will be very greatful!

#include "lmc_tween.as"
holder_mc.alphaTo(100, 1, "easeInOutQuad", 1)

// names of swf pieces to be loaded
cont=["cont0.swf", "cont1.swf", "cont2.swf", "cont3.swf", "cont4.swf"]

// name of tiles 
tileOg=["tile0", "tile1", "tile2", "tile3", "tile4"]

// width of tiles
tileW=[555, 652, 465, 954, 717]

// new tile array
tile=[]

// var for tile placement
var WW=0

for(i=0; i<tileOg.length; i++){
	
	//attach blank tiles to stage
	newTile=this.holder_mc.attachMovie(tileOg*, tileOg*, i);
	newTile._x=WW
	
	// update WW
	WW=tileW*+WW
	
	//fill tile[] with the new mc instance name
	tile*=newTile
	
	// set new var with  the current cont[]
	newTile.contL=cont*
	
	// MOVEMENT!!!
	newTile.onEnterFrame=function(){
		mouseX=_xmouse;
		mouseY=_ymouse;
		
		
		// if mouse is on the left of the stage
		if((mouseX<=100)){
			speed=-((mouseX-100)/30);
			
			if(this._x>Stage.width+20){
				
				// move the last tile to front
				tile[4]._x=tile[0]._x-tileW[4]
				
				// update arrays
				s=tile.pop();
				tile.unshift(s)
				w=tileW.pop();
				tileW.unshift(w)
			
			}
			// move them all!
			this._x+=(1*speed)
		}
		
		// if mouse is on the right of the stage
		if((mouseX>=Stage.width-100)){
			speed=-((mouseX-(Stage.width-100))/30);
			
			if(this._x<-this._width-20){
				// move the last tile to back
				tile[0]._x=tile[4]._x+tileW[4]
				
				// update arrays
				s=tile.shift()
				tile.push(s)
				w=tileW.shift()
				tileW.push(w)
			}
			// move them all!
			this._x+=(1*speed)
		}
		
		// attach the .swfs into the correct tile if that tile is on the stage
		if((this._x>=-this._width-20)and(this._x<=Stage.width+20)and((this.mcLoad==1)||(this.mcLoad==undefined))){
			this.holder_mc.loadMovie(this.contL)
			this.mcLoad=0
		}else{
			if((this._x<-this._width-20)||(this._x>Stage.width+20)){
				this.mcLoad=1
				this.holder_mc.unloadMovie()
			}
				
		}
	}
				
	
}



any and all help will win you developer of the year (well, at least in my book!)