# Loading & unloading Music with Actionscript

**URL:** https://forum.kirupa.com/t/loading-unloading-music-with-actionscript/291251
**Category:** flash
**Created:** [June 26, 2009, 7:36pm UTC](https://forum.kirupa.com/t/loading-unloading-music-with-actionscript/291251 "2009-06-26T19:36:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mrdamon](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mrdamon](https://forum.kirupa.com/u/mrdamon)
#### Post date: [June 26, 2009, 7:36pm UTC](https://forum.kirupa.com/t/loading-unloading-music-with-actionscript/291251/1 "2009-06-26T19:36:57Z")

</div>

I’m trying to add a couple of music files to a CD presentation using actionscript. I know how to load one track but how do I unload a tack when it’s finished and load another after that? Here is the code I have so far:

myMusic = new Sound(myMusic\_Mc);  
myMusic.loadSound(“Doin It.mp3”);  
myMusic.start(0,5);

P.S. using CS3.  
:stare:  
mrDamon  
 ![](http://forum.kirupa.com/uploads/kirupa/615/b7e0d890f190c4d7.gif) [![](http://forum.kirupa.com/uploads/kirupa/5523/bbd281b1914a8706.gif)](http://www.actionscript.org/forums/report.php3?p=896647) ![](http://forum.kirupa.com/uploads/kirupa/5477/b4dcc1ee527db6cd.gif)
