Reversing actrion script?!

i am using the following code to have images scroll across the screen in accordance to where the mouse moves i.e. if the mouse moves left the images move left.

the code was from :

http://www.kirupa.com/developer/mx/infinite.asp

and goes like this:

onClipEvent (load) {
xcenter = 275; 275 = 1/2 movie width
speed = 1/10;
}
onClipEvent (enterFrame){
var distance=_root._xmouse-xcenter;
_x += (distance*speed);
if (_x>0) _x=-550; 550 = width of movie
if (_x<-550) _x=0;
}

i want to be able to reverse this code so when the mouse goes left the images go right and when the mouse goes right the images go left? any ideas?!

sadie

thanx for any help


onClipEvent (load) {
	xcenter = 275; 275 = 1/2 movie width 
	speed = 1/10;
}
onClipEvent (enterFrame){
	var distance=_root._xmouse-xcenter;
	_x -= (distance*speed);
	if (_x>0) _x=-550; 550 = width of movie
	if (_x<-550) _x=0;
}

cheers :beam: :beam:

no problem dude =)