2 Replies Latest reply on Nov 10, 2006 11:22 PM by arunbe

    Pause control

    brentam
      First, thank you for your help. I receive this actionscript, which I have working. However, I would like to added a pause control in the script. For example, there are 5 rotating images and when you hover over the image, I am wanting it to pause until your cursor moves off of the image. I've included the actionscript below. Any helpw ould be much appreciated. Thank in advance.

      function fun1()
      {
      if (current == numOfImage)
      {
      current = 1;
      }
      else
      {
      current++;
      } // end if
      } // End of the function
      numOfImage = 5;
      current = 1;
      HeightOfImage = 200;
      gap = 6000;
      link = [" http://staging.www.????/", " http://staging.staging.www.????", " http://staging.staging.www.????", " http://staging.staging.www.????/", " http://staging.www.????/"
      for (i = 1; i <= numOfImage; i++)
      {
      this .gotoAndStop(i);
      this
      .onRollOver = function ()
      {
      current = this._name;
      };
      this .onRelease = image.onRelease = function ()
      {
      getURL(link[this._name - 1], "_self");
      };
      image ._x = 0;
      image
      ._y = (i - 1) * HeightOfImage;
      } // end of for
      interval = setInterval(fun1, gap);
      this.onEnterFrame = function ()
      {
      image._y = image._y + (-(current - 1) * HeightOfImage - image._y) / 4;
      point._y = point._y + ((current - 1) * 40 - point._y) / 4;
      };