0 Replies Latest reply on Jun 20, 2007 10:03 AM by pagliuco

    Scrolling quandry

    pagliuco
      Hello.

      I'm trying to set up a scrolling text field that scrolls slowly when you roll over the arrow buttons, but speeds up when you click the arrow buttons. I've been able to do one or the other, but not both functions on the same buttons. Here's a link to the site I'm working on: http://inspiredthrumovement.com. Right now I have a rollover set up, with my text scrolling from behind a mask. It scrolls rather slowly, so I want people to have the option of speeding up the scroll on click.

      This is my actionscript on the up button:

      on (rollOver) {
      tellTarget ("control") {
      gotoAndPlay(2);
      }
      }
      on (rollOut, dragOut) {
      tellTarget ("control") {
      gotoAndStop(1);
      }
      }



      This is on the down button:

      on (rollOver) {
      tellTarget ("control") {
      gotoAndPlay(5);
      }
      }
      on (rollOut, dragOut) {
      tellTarget ("control") {
      gotoAndStop(4);
      }
      }

      I have a control movie set up with the following actionscript:

      layer "up":

      FRAME 1:
      stop();

      FRAME 2:
      y = getProperty("_root.text.content", _y);
      if (y>-1) {
      gotoAndStop(1);
      } else {
      setProperty("_root.text.content", _y, y+6);
      }

      FRAME 3:
      gotoAndPlay(2);

      layer "down":

      FRAME 1:
      stop();

      FRAME 2:
      y = getProperty("_root.text.content", _y);
      if (y<-520) {
      gotoAndPlay(4);
      } else {
      setProperty("_root.text.content", _y, y-6);
      }

      FRAME 3:
      gotoAndPlay(5);

      Any help adding a faster scroll function to the buttons (on click) would be much appreciated!