Flash next/prev navigation
Flash next/prev navigation
Out of context: Reply #1
- Started
- Last post
- 19 Responses
- unfittoprint0
what you should is make a slide function and use an interval to loop it when necessary.
Create a refresh function that has the number of images inside. That will slide and, when necessary, disable the fwd or rwd button when the slide reaches the beginning or the end. The refresh should have a parameter/number that indicates where to go.
ie.
total=10;
count=1;
refresh = function(n){
slide(n);
count=n;
rwd._visible=(n==1)?false:true
fwd._visible=(n==10)?false:true;
}fwd = function(){
refresh(++count)
}rwd = function{
refresh(--count)
}//start
refresh(1);