3 Replies Latest reply on Nov 27, 2006 7:38 AM by tlm_scripter

    scrollbar position

    tlm_scripter
      I am working with the scrollpane component. I have movie clips that I've loaded into the scrollpane successfully and am working on having the content automatically scroll. This mostly works, but the problem is that I am not able to get the scrollbar to move accordingly. I have tried using hPosition, but this does nothing.
      Any suggestions as to what I could do to?

      Here is my code: (sContent is the content of the scrollpane and sScroller is the scrollpane.)

      function doScroll(){
      var curposX = _root.sContent._x;
      if(curposX>stopper){
      _root.sContent._x-=3;
      _root.sScroller.hPosition -=3; //i've also tried taking out the line above this one and only using hPosition
      }
      else{
      stopScroll();
      }
      }