Side Scrolling Photo OnRelease?

hello, I need to know how to do something like this:

http://www.immigrantindustries.com/immigrantrecords/

On their navigation when you click on a link, the photo slides left or right, depending on wich side you clicked. I was wondering how the simplest possible way i could achieve this would be…Can anyone help?

Well, all the content is a big movieclip that slides into place when a button is clicked. Here’s a complete tutor:

  1. You have to make the big movie first. Add all the content to it by putting it all next to eachother (see how immigrantsrecords did this)

  2. Make a new empty movieclip (CTRL+F8), give it any name and drag it from the library to the stage (doesn’t matter where).

  3. Add this code to it:

[AS]
onClipEvent(enterFrame){
_root.bigcontentmovie._x = _root.targX - (_root.targX - _root.bigcontentmovie._x)/1.2;
}
[/AS]

  1. Now, add this code to your buttons:

[AS]
on (release){
_root.targX = xpositionofbigcontentmoviewheninplaceitshouldslideto;
}
[/AS]

Just to clear some things up : xpositionofbigcontentmoviewheninplaceitshouldslideto should be replaced by the x position of your big content movie, when already in place it should be going to when that button is clicked. To know this, drag the bigcontent movieclip to the place so the content is showing up correctly. Now read the X value from the Info window (Window - Info). Replace xpositionofbigcontentmoviewheninplaceitshouldslideto by that value.

Of course, xpositionofbigcontentmoviewheninplaceitshouldslideto is different for each button.

Hope this helps =)

Here´s a link to the same question and another sollution, but this one seems easier to do.:ub:http://www.kirupaforum.com/forums/showthread.php?s=&threadid=26546

Ok i appreciate the replies, i know they will work, but i have run into a dilema here… each image i will place in this “bigcontentmovie” will be 940px wide, so the whole thing will be around 5000px wide… Flash only allows it to extend to 2888px… or else the image will be “pixel stretched” because of an error… here is an example:

here is what is causing this error i think:


NOTE: that image is zoomed out

Is there a way to make the stage bigger so i will be able to place all of these images?

Maybe this will help