1 Reply Latest reply on Jul 10, 2007 9:01 PM by kglad

    Making simple image viewer, Pls hlp with code

    mout12
      Ok here is the code that I use.
      Code from Frame1:
      ________________________
      var foofie = "boob";
      var numbr = 11;
      ----------------------------------------
      Code from a Button on frame 1:
      ---------------------------------------------------------------
      on (release) {
      loadMovieNum(foofie + numbr + ".jpg", 4);
      var numbr = numbr + 1;
      }
      -----------------------------------------------------------------

      I have 3 images called, boob11, boob12, boob13. Once I click the button, it will load the next image because the var "numbr" is ++'d to go from boob11 to boob12 etc...

      I plan to put this image viewer on a web server, and I don't want to have to edit the .FLA file every time I upload a new picture. How can I fix this code so I can either, update a .txt file (or similar), or it can check when there are no more images in the sequence and then start back at boob11?

      Thanks for your helps!