13 Replies Latest reply on May 21, 2009 9:38 PM by kglad

    how do I stop make my slideshow on the last image?

    iggyotis

      Hi, I have a slideshow of images which a user can cycle through with the next button, but I want it to stop on the last frame/image so they can then use the previous_btn to go back? this is my code, can anyone help?

       

       

       

      next_btn.onPress=function(){
      if(mc_content._currentframe==mc_content._totalframes){
      mc_content.gotoAndStop(1)
      }else{
      mc_content.nextFrame()
      }
      }
      last_btn.onPress=function(){
      if(mc_content._currentframe==1){
      mc_content.gotoAndStop(mc_content._totalframes)
      }else{
      mc_content.prevFrame()
      }
      }