Okay I’m making a mp3 player using flash and i would like to have the play and pause function all in one button rather having separating into two buttons. Here is the code what I have so far.
playpause_button.addEventListener(MouseEvent.CLICK, playpauseButtonClick);
function playpauseButtonClick( event:MouseEvent):void {
theChannel = theSound.play(pausepoint);
pausepoint = theChannel.position;
theChannel.stop();
}
whenever i hit the pause and play button it won’t pause. The stop button has a
pausepoint = 0;