1 Reply Latest reply on Nov 28, 2006 7:12 AM by kglad

    SWF Timeline control

    djdini
      Hello,
      I am trying to put a timeline on my SWF that allows the user to move to different points of the swf. I want them to be able to move a slider to get to different frames forward and back. Any suggestions?
        • 1. Re: SWF Timeline control
          kglad Adobe Community Professional & MVP
          you can use a onMouseMove method for your slider and _root.gotoAndStop(frameNum) or _root.gotoAndPlay(frameNum). to define the frame numbers use a linear equation with the slider's position as the independent variable.

          for example:

          frameNum= a*slider._x + b

          to find a and b for your slider, solve the following 2 equations in 2 unknowns:

          1=a*sliderExtremePosition+b
          _root.totalframes=a*sliderOtherExtremePosition+b