basically i am doing a sort of next and previous button, previous is fine but the next button is going to far in the timeline, i would like it to stop at frame 19 and then start again from the beginning. the line of code "if(currentFrame!=currentFrame+10)" seems to not be giving me this. can i not just swap "currentFrame+10" for just "frame(19)" or something along those lines. Please if you dont understand my question either please say and ill repost and try to make more sense of it
nxt_planet.addEventListener(MouseEvent.CLICK, goNext)
function goNext(e:MouseEvent):void{
if(currentFrame!=currentFrame+10){
nextFrame();
}
else{
gotoAndStop(10);
}
}
prv_planet.addEventListener(MouseEvent.CLICK, goPrevious)
function goPrevious (e:MouseEvent):void{
if (currentFrame>10){
prevFrame();
}
else{
gotoAndStop(19);
}
}
nxt_planet.addEventListener(MouseEvent.CLICK, goNext)
function goNext(e:MouseEvent):void{
if(currentFrame!=currentFrame+10){
nextFrame();
}
else{
gotoAndStop(10);
}
}
prv_planet.addEventListener(MouseEvent.CLICK, goPrevious)
function goPrevious (e:MouseEvent):void{
if (currentFrame>10){
prevFrame();
}
else{
gotoAndStop(19);
}
}