1 Reply Latest reply on Oct 10, 2008 6:33 PM by kglad

    scrolling left and right on roll over

    brian914 Level 1
      I would like to scroll my movie left and right on rollover. I am not exactly sure how to do that at the moment.
      I was thinking something like the following, but the code inside the function would have be repeated as long as the mouse is hovering over the trigger. How would I do that best?

      function scrollCarousel(whereTo:Number):Void {
      s_menu.tween("_x",s_menu._x + whereTo,.1,"linear");
      }
      l1_btn.onRollOver = function():Void {
      scrollCarousel(-2);
      }
      r1_btn.onRollOver = function():Void {
      scrollCarousel(2);
      }