# Switching Song With Actionscript

**URL:** <https://forum.kirupa.com/t/switching-song-with-actionscript/305167>\
**Category:** flash\
**Created:** [February 20, 2010, 4:59am UTC](https://forum.kirupa.com/t/switching-song-with-actionscript/305167 "2010-02-20T04:59:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny0123](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@Danny0123](https://forum.kirupa.com/u/Danny0123)\
**Post date:** [February 20, 2010, 4:59am UTC](https://forum.kirupa.com/t/switching-song-with-actionscript/305167/1 "2010-02-20T04:59:32Z")

</div>

How would I switch between 2 sounds in Actionscript?

I need something where depending on a Boolean, a certain song is playing (a loop) and every time you switch, it saves the time so when you go back, instead of it starting at the beginning, it starts where you last stopped.

Say I was playing Sound one and stopped it at 0:25. And when I went back to Sound one it started at 0:25.
