3 Replies Latest reply on Jul 28, 2009 5:28 AM by webqaflash

    Scrubber problems continued. AS2/Flash CS3

    lukeld

      Hey guys. I'm having troubles with my scrubber on my loadbar again.

      As a picture says a 1000 words heres a screenshot of the problem:

      Picture 10.png

       

      Basically the scrubber bar is going waaaay past the 373px I asked to stop at.

       

      I've tried messing about with telling scrubber_mc to stop at the end of ._x of the loadbar clip but have had no luck.

      Anybody with suggestions?

       

      Here's the code:

       

      /*These are the scrubber functions*/

       

      var scrubInterval;

       

      loader_mc.scrub_mc.onPress = function()
      {
          clearInterval(videoInterval);
          scrubInterval = setInterval(scrubber,10);
          this.startDrag(false,0,this._y,373,this._y);
      }

       

      loader_mc.scrub_mc.onRelease = loader_mc.scrub_mc.onReleaseOutside = function()
      {
          clearInterval(scrubInterval);
          videoInterval = setInterval(videoStatus,100);
          this.stopDrag();
      }

       

      function scrubber()
      {
          ns.seek(Math.floor(loader_mc.scrub_mc._x/373 * duration));
      }

       

      Any help is appreciated.

       

      Thanks in advance