asdg>> technotes>> pausing a sound

While there's no direct way to pause a sound programmatically in Flash 5, there are a couple of workarounds to the problem.

1) Use a Streaming Sound
Place your sound in a movie clip and set it to stream. When you want to pause the sound, stop() the clip. The sound will stop. If you then play() the clip, the sound will resume where it left off.

2) Use a Timer
If you want to pause a programmatic sound, you have to keep track of how long it's been playing manually. When you stop the sound, calculate how long it played for. When you play it again, set the start() offset to the time you measured. For example: