0 Replies Latest reply on Feb 6, 2008 12:34 PM by rarararadical

    Simple Function Question

    rarararadical
      I've just followed this tutorial that scrolls horizontally through a sequences of images and works beautifully for me. (View Tutorial) However, the tutorial has 5 navigation buttons and I would only like to have 2 – a forward and back button. How can I adjust the code below to just display the next image and previous image?

      Images are in sequence and named image1.gif, image2.gif, image3.gif and so on.

      ________________________________________________

      // About us Button
      but1.onRelease = function() {
      _root.trig.xposnew = -(_root.imagewidth);
      };

      // Products Button
      but2.onRelease = function() {
      _root.trig.xposnew = -((_root.imagewidth)*2);
      };

      // Services Button
      but3.onRelease = function() {
      _root.trig.xposnew = -((_root.imagewidth)*3);
      };

      // Clients Button
      but4.onRelease = function() {
      _root.trig.xposnew = -((_root.imagewidth)*4);
      };

      // Contact Us Button
      but5.onRelease = function() {
      _root.trig.xposnew = -((_root.imagewidth)*5);
      };

      ________________________________________________