Hey,
I’m building a photo slide menu, where there are 17 images inside one move clip. The action on the movie clip is…
onClipEvent(load) {
pic = 17;
totalpics = 17;
}
onClipEvent (enterFrame) {
//the picture number times the width of the pictures
//minus one half the width of the pictures
newdist = (((pic*(_width/totalpics)-(.43*_width) - _x)) / 4);
_x = _x+newdist;
}
My menu consists of small thumbnails. When clicked, that pic is to move to the center.
The problem is… some pictures are twice as wide as others, therefore, when you click some images, they scroll past the left fold of the site. Is there any way to prevent this?
Thanks