4 Replies Latest reply on May 13, 2008 11:21 AM by robdillon

    Scrolling images on rollover?

    tomsaunders99 Level 1
      Hi Everybody,

      I have a scrolling image panel which works fine, but I'd like it to only scroll on rollover.

      The script I have has onEnterFrame but it still rolls over wherever your mouse is.

      Please could somebody help me modify my script so that it only works on rollover?

      Many thanks,

      Tom


      Here's the script:


      onClipEvent (enterFrame) {
      //movie clip enterframe event
      _x = _x+2;
      //change position for each enterframe event
      if (_x>=2588) {
      //condition
      _x = -2588;
      //if condition true movie clip jumps to starting postion.
      }
      }