5 Replies Latest reply on Aug 6, 2010 4:44 PM by Ned Murphy

    I need help with debugging a image gallery created in flash.

    ohyea82004

      I created this gallery which is suppose to allow the user to click a last or next button to goto the another image. However, when I open the .swf its in a continuous loop. Here my script below. Could someone please provide some assistance? Thanks in advance.

       

      stop();

      //next button
      next_btn.onPress=function()
      {
      if(mc_content._currentframe==mc_content._totalframes)
      {
        mc_content.gotoAndStop(1)
      }else{
         mc_content.nextFrame()
         }
      }

      //last button
      last_btn.onPress=function()
      {
      if(mc_content._currentframe==1)
      {
        mc_content.gotoAndStop(mc_content._totalframes)
      }else{
         mc_content.prevFrame()
         }
      }