Flash next/prev navigation
Flash next/prev navigation
Out of context: Reply #7
- Started
- Last post
- 19 Responses
- unfittoprint0
//make an MC with all the images and place them in the stage.
imageSize = 200;
totalImages=10;//slide function
changePos = function(targetx){
slideMC += (targerx-SlideMC._x)/4
}
slide = function(targetx){
clearInterval(slideLoop);
slideLoop=setnterval(this, "changePos", 30, targetx);
}//refresh function for the buttons
refresh = function(n){
slide(n*imageSize);
count=n;
rwd._visible=(n==1)? false:true
fwd._visible=(n==totalImages) ?false:true;
}//button functions
//these buttons are MC'sfwd = function(){
refresh(++count)
}rwd = function{
refresh(--count)
}//initiate
refresh(1);