8 Replies Latest reply on Sep 17, 2007 12:12 PM by Flamebg

    startDrag issues with CS3

    jared@chase
      Very frustrated here, I'm currently in the process of making a video player for our training, and I need a slider bar to control the timing. The code below works in MX2004, but it does not work in CS3. I'm thinking it's a bug of some sort, but getting anybody on the phone at adobe that doesn't pass you onto some other department is damn near impossible, so hopefully somebody on these forums can help me out.

      startDrag(target,lockcenter,l,t,r,b) is the way that the code hint is written in CS3, but it's obviously not correct, and as close as I can find, it is actually b,r,t,l for the bounding.

      Here's my code that works in MX2004 perfectly, but in CS3, it just ignores the left boundry and goes all the way to the left of the stage at all times, even though it should be around the 92 pixel area.

      Any ideas??

      Thanks in advance.

      slider._x=sliderBar._x-sliderBar._width/2;
      slider._y=sliderBar._y
      leftLimit=sliderBar._x-sliderBar._width/2;
      topLimit=slider._y;
      bottomLimit=slider._y;
      rightLimit=sliderBar._x+sliderBar._width/2;
      slider.onPress=function(){
      this.startDrag(this,true,bottomLimit, rightLimit, topLimit,leftLimit);
      }

      startDrag(
      slider.onRelease=function(){
      this.stopDrag();
      }

      slider.onReleaseOutside=function(){
      this.stopDrag();
      }