0 Replies Latest reply on Mar 28, 2009 9:20 AM by dstx

    Custom audio player

    dstx Level 1
      I'd like to create an audio player like the CSMonitor uses for its daily podcast at csmonitor.com
      I'm able to create one using a simple rewind, stop, start, and jump to end button using actionscript, but how do I get start button to change to pause button when pushed and vice versa, progress bar with blue ball, and counter that shows time played out of total time length of audio file?
      Do I make a separate image for the blue ball and the progress bar? then how do I script the ball to move and the time indicators.

      Actionscript I'm currently familiar with using:

      gotoAndStop(1)
      rewindBtn.onPress = function () {
      gotoAndStop(1);
      };
      stopBtn.onPress = function () {
      stop();
      };
      playBtn.onPress = function () {
      play();
      };
      endBtn.onPress = function () {
      gotoAndStop(2560);
      };
      pauseBtn.onRelease = function () {
      (toggle = (toggle) ? false : true) ? stop() : play();
      };