1 Reply Latest reply on Feb 7, 2008 11:37 AM by R-Designer

    scroll navigation

    rarararadical
      I am looking to create a horizontal navigation with only a forward and back button that scrolls through images in a specified order. I found a tutorial that has worked perfectly thus far with the exception that it has 5 navigation buttons that scroll through each image. How can I convert the actionscript below to scroll only forward and backwards?

      Tutorial is found here
      ------------------------------------------------------------------------------------------ ------
      // 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);
      };

      --------------------------------