Skip to main content
August 8, 2008
Answered

Can't figure out the AC to use for my "Previous" and "Next" buttons

  • August 8, 2008
  • 5 replies
  • 584 views
Hi guys,

I have a slidshow that stretches over 280 frames which can be seen here:

http://www.paragon-nj.com/newslideshow.html

or the fla:
http://www.paragon-nj.com/newslideshow.fla

There are fade ins and outs and I made buttons numbered 1-5 where you can skip to each new slide. At present I am trying to create the "previous" and "next" buttons but I'm hitting a snag of how you make something like this work. The entire AC I have is this:

a.onRelease=function(){
gotoAndPlay(1);
}

b.onRelease=function(){
gotoAndPlay(55);
}

c.onRelease=function(){
gotoAndPlay(110);
}

d.onRelease=function(){
gotoAndPlay(165);
}

e.onRelease=function(){
gotoAndPlay(220);
}

next_btn.onRelease = function () {
(not sure what to put here) ;
}

previous_btn.onRelease = function () {
(not sure what to put here) ;
}

Thanks in advance for all the input

Wil
This topic has been closed for replies.
Correct answer kglad
use the _currentframe+55 for your next button and _currentframe-55 for your previous button unless the current frame is 1 or 55 when you were inconsistant used 54 frames between slide transitions.

5 replies

kglad
Community Expert
Community Expert
August 9, 2008
you're welcome. you might consider adding a frame after the first transition so it too is 55 frames.
August 9, 2008
Good idea. Will do

Thanks again
whorneff310
August 8, 2008
Scratch that, I see the problem
Thanks Kglad
kglad
Community Expert
Community Expert
August 8, 2008
you're welcome.
August 8, 2008
Awesome. Thanks again for the help Kglad
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 8, 2008
use the _currentframe+55 for your next button and _currentframe-55 for your previous button unless the current frame is 1 or 55 when you were inconsistant used 54 frames between slide transitions.