2 Replies Latest reply on May 1, 2006 4:01 PM by shyaway

    Can't the the playback head to start playing again

    andyfoltz
      I've got a slider bar that I'm using to scrub the playback head. I also have a stop and a play button. The Stop and Play buttons have something like

      on (release) {
      _root.play();
      }

      and the script in the scrub bar is this :


      this.ratio = 50;
      dragger.onPress = function()
      {
      this.startDrag(true, 0, 0, line._width, 0);
      this.onEnterFrame = function()
      {
      ratio = Math.round(this._x * 100 / line._width);
      _root.gotoAndStop(Math.round((ratio * _root._totalframes) / 100));
      };
      };
      dragger.onRelease = dragger.onReleaseOutside = stopDrag;
      dragger.onEnterFrame = function()
      {
      this._x = Math.round(100 * _root._currentframe / _root._totalframes);
      };

      My problem is that the start and stop buttons stop working as soon as I use the scrub bar button ("dragger").

      Can someone kindly point out the error of my ways?
      Thanks.