I'm trying to make a paged interaction, where at anytime a user can click on a button to take them to any other page. Each page is just a point on the timeline where it stops, and plays the page movieclip. like so:
//mute all media here?
exportRoot.gotoAndPlay(0); // <-- Frame where page starts
To stop all playing sounds, you can just use the static
stop method on
Note that this will stop every sound that is playing. You can resume any sound instance by calling
play() again, but there is no way to resume all.
A better way might be to store played sounds in an array, and when you want to clear them out, iterate the array to stop or pause them individually. When you are done, clear out the array, and start over.