0 Replies Latest reply on Aug 19, 2006 11:31 AM by Brad_Layher

    help with scrolling please

    Brad_Layher
      hey everyone,
      I just figured out a way to scroll a strip of thumbnails using left/right buttons on rollOver. it's masked so it only shows about 3-4 pics at a time but there'e about 20 pics in the strip. The problem is that when I get to the end of the strip on either side, it just keeps on going and doesn't stop.

      "fatController" is just an invisible MC that tells the slide what to do.
      and "masker.contentText" is just some code I haven't converted yet (becuase it used to be a text scroll instead of pics).

      //my left button code:
      on (rollOver) {
      direction = -1;
      _level0.fatController.gotoAndPlay(2);
      }
      on (press, release, releaseOutside, rollOut, dragOut) {
      _level0.fatController.gotoAndStop(1);
      }

      //Right button code:
      on (rollOver) {
      direction = 1;
      _level0.fatController.gotoAndPlay(2);
      }
      on (press, release, releaseOutside, rollOut, dragOut) {
      _level0.fatController.gotoAndStop(1);
      }
      //and my slide code:

      //frame1
      stop();

      //frame2
      _level0.masker.contentText._x = _level0.masker.contentText._x + ( _level0:direction * 5);

      //frame3
      _level0.masker.contentText._x = _level0.masker.contentText._x + ( _level0:direction * 5);
      gotoAndPlay (2);


      any help would be so great!
      B-rad