# mp3 player help please!

**URL:** https://forum.kirupa.com/t/mp3-player-help-please/235747
**Category:** Uncategorized
**Created:** [August 14, 2007, 12:58pm UTC](https://forum.kirupa.com/t/mp3-player-help-please/235747 "2007-08-14T12:58:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Booger](https://avatars.discourse-cdn.com/v4/letter/b/90ced4/32.png) [@Booger](https://forum.kirupa.com/u/Booger)
#### Post date: [August 14, 2007, 12:58pm UTC](https://forum.kirupa.com/t/mp3-player-help-please/235747/1 "2007-08-14T12:58:09Z")

</div>

I have created my own little mp3 player and have about 5 songs (so far) to choose from different buttons on the fla.  
However what I have noticed is that I can stop the song and get the frame head to go and stream to the next song but the first song is still streaming.  
Again if I hit another button that also streams another song, obviously until they are all fully loaded and if I hit enough (songs) streams, obviously the computer slows down and songs start breaking up !  
Is there a way to “kill” the streaming process ?

**This code is on my first frame**  
music1=new Sound();  
music1.loadSound(“Wake UP MP3 edit.mp3”,true);  
currentTrack=music1;

//button controls  
wakeUp\_btn.onRelease = function() {  
currentTrack.stop();  
gotoAndStop(1);  
};  
yummy\_btn.onRelease=function(){  
currentTrack.stop();  
gotoAndStop(5);  
}  
bigGreen\_btn.onRelease=function(){  
currentTrack.stop();  
gotoAndStop(10);  
}  
swim\_btn.onRelease=function(){  
currentTrack.stop();  
gotoAndStop(15);  
}  
peaceful\_btn.onRelease=function(){  
currentTrack.stop();  
gotoAndStop(20);  
}

play\_btn.onRelease = function() {  
currentTrack.start();  
};  
stop\_btn.onRelease = function() {  
currentTrack.stop();  
};

//mp3 song display  
this.onEnterFrame=function(){  
songName\_txt.text=music1.id3.songname.toUpperCase();

}

```
stop();

```

The buttons then take you to another part of the frame head with the following code obviously music2 changes to music3 and so on…  
music2=new Sound();  
music2.loadSound(“Yummy Scrummy Mummy MP3 edit.mp3”,true);  
currentTrack=music2;

this.onEnterFrame=function(){  
songName\_txt.text=music2.id3.songname.toUpperCase();

}  
stop();

Flash can’t stop the first loadSound. In another words, it stops the sound, but the loading process continues wich causes the user to download 2 files or how many I press, which is not good…

Another way I thought of doing it was to create an external swf and have the music in that, to load an unload, but that seems long winded.

Thanks for anyone’s help

Cheers,
