19 Replies Latest reply on Aug 19, 2009 11:44 AM by NSurveyor

    scroll movieclip at 2x the speed as it currently is

    videostart Level 1

      Hi!

       

      I have 2 buttons that are currently scrolling a movie clip with this function on(rollover):

       

      function moveMC(end, dir) {
      mc.onEnterFrame = function() {
        if (Math.abs(mc._x-end)>1) {
         mc._x += dir*step;
        } else {
         mc._x = end;
        
        }
      };
      }

       

      How is it possible to get get it to scroll at 2x that speed on(press)  ?

       

      Thanks for the assistance