// Code for the scrolling starfield object

onClipEvent (load) {
	
	stars.duplicateMovieClip("stars2", 100)
	stars2._x = stars._x + stars._width;
	starsStartx = this._x;
	starsSpeed = 5;
}

onClipEvent (enterFrame){
	
	if (_root.spaceShip.scrollStart){
		this._x -= starsSpeed;
		if ( this._x <= (starsStartx-stars._width) ) {
			this._x = starsStartx-starsSpeed
		}
	}
}