Image Sliding device, reverse motion

Sooo…I’ve been building this website for a while and my boss wants me to make two changes that are over my head.

  1. He wants the image slider device to scroll from left to right, instead of the default right to left.

  2. He wants to make it so that when you click on one of the photos (which are all buttons) the scrolling stops, and when you click “close” the scrolling starts again.

Here is the actionscript for the sliding mechanism:

_quality = “BEST”;
moview = 770;
w = slider._width;
speed = 30;
delta_im = 10;
rates = 0.1;
xpos = -1;
//
m = 0;
tmi = 2;
while (m<tmi) {
m++;
dup = ‘image’+m;
slider.image.duplicateMovieClip(dup, m+1);
slider.image1._x = slider.image._x+slider.image._width+delta_im;
slider.image2._x = slider.image._x-slider.image._width-delta_im;
}
//
onEnterFrame = function () {
slider._x += -(xpos/Math.abs(xpos));
if (slider._x<-slider.image._width) {
slider._x = 0;
} else if (slider._x>slider.image._width-1) {
slider._x = -slider.image._width;
}
//
if (zone_mc.hitTest(this._xmouse, this._ymouse, true)) {
xpos = this._xmouse;
xpos = xpos-(moview/2);
if (xpos>160 || xpos<-160) {
sign = xpos/Math.abs(xpos);
needSpeed = (xpos-100*sign)/speed;
slider._x = slider._x-needSpeed;
}
} else {
}
//
};
stop();

If you want to see the website to get a better idea of what it looks like, go to the “kitchen” page of www.gwwoodworking.com

Thanks!
-Natalie