container1, container2, container3… And so forth and so on…
Have a variable to keep track which container number you are on… 2 or 3 for example… Then…
// Place this in the move forward movieClip
on(press)
{
if(containerNum <= numSlides){containerNum++;}
else{containerNum = 1;}
}
// Place this in the move backward movieClip
on(press)
{
if(containerNum >= 1){containerNum--;}
else{containerNum = numSlides;}
}
Put this in your main movie frame.. The first one...
_root.onLoad = function()
{
numSlides = 30;
for(x=1;x<=numSlides;x++)
{
_root.createEmptyMovieClip("container"+x, x+10);
_root["container"+x].loadMovie("slide"+x+".jpg");
}
}
This says… If the variable containerNum (which holds which slide you are currently in…) is <= numSlides (which holds how many slides total you have) then to advance the slide to the next one… And if it’s at the very end… To go back to the very first image…
On the second line… It’s basically the same way except it moves backwards through the slides…
On the third line… It states… When the _root… or movie… Finally loads up… It will Create the for loop which will load up all the slides you have (gonna have to set up something here for that… Set up your own number there… I’d limit it to a small number for loading purposes on slow connections… ).
Hope this helps you out… You still need to do some more basic coding… But this should lead you in the right direction.
Creating engaging and entertaining content for designers and developers since 1998.