Hey all, I am trying to set up two buttons, one that will step forward one frame, the other step backward one frame, all on the same timeline. The only thing I want to happen is for there to be a limit on how far back and forward the buttons can step on the timeline.
This is what I had thus far but was not working:
back_btn.onRelease = function() {
if(_currentframe>=32) {
gotoAndStop(_currentframe-1)
}
}
forward_btn.onRelease = function() {
if(_currentframe<=39) {
gotoAndStop(_currentframe+1)
}
}
So I stripped it down to this just to make sure I had the base of it written properly:
back_btn.onRelease = function() {
gotoAndStop(_currentframe-1)
}
forward_btn.onRelease = function() {
gotoAndStop(_currentframe+1)
}
and now it goes to a completely different scene alltogether! I have no idea why that is…
Anyone have any ideas? I would really appreciate it!
Thanks.
-D-