Hi,
I’ve built a photo gallery, but need help with the “next” and “previous” buttons. I load all the images into thumbnail movieclips in the first frame. When you click on a thumbnail it places the photo into a larger movieclip.
The code when you click on a thumbnail button is:
[COLOR=RoyalBlue]on (release) {
gotoAndPlay(“open”);
place = “images/1”;
}[/COLOR]
Which takes the playhead to “open” on the timeline. This is the code on “open”:
l[COLOR=RoyalBlue]oadMovie(place+".jpg", “large”);[/COLOR]
Where “large” is the movieclip that contains the picture.
I need a “next” button to load the next image in the sequence (in this case “images/2.jpg”) into “large”. I’m at a loss…can anyone help please? Do I need to make an array?
Thank you, and Happy Christmas!
Will