# Stoping a loading sound

**URL:** https://forum.kirupa.com/t/stoping-a-loading-sound/309735
**Category:** Uncategorized
**Created:** [May 23, 2010, 5:24pm UTC](https://forum.kirupa.com/t/stoping-a-loading-sound/309735 "2010-05-23T17:24:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![minow](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@minow](https://forum.kirupa.com/u/minow)
#### Post date: [May 23, 2010, 5:24pm UTC](https://forum.kirupa.com/t/stoping-a-loading-sound/309735/1 "2010-05-23T17:24:32Z")

</div>

hey…

i have build some kind of music selector in my site (Action Script 2, flash player 10)  
my problem is that when a user change his selection, the new song starts loading and if the last song didnt finished loading it dosend stop the loading.

so the problem is that i have 2-4 songs beeing download at the same time… not so good for low bandwidth.

this is the script:  
where: LoadSound is the function that load the songs, num is the identifier of the song & radio button when 0 means stop/silent the music

```auto
 
function LoadSound (num) {
 if (num == 0) {
  backSound.setVolume(0);
  mcPageHome_mc.btnMusic0.selected = true;
  //SoundLoader_mc.removeMovieClip();
 } else {
  backSound = new Sound (SoundLoader_mc);
  backSound.loadSound("music/" + num + ".mp3", true);
  backSound.setVolume(50);
  eval("mcPageHome_mc.btnMusic" + num).selected = true;
  myInterval = setInterval(preload,100);
  MusicPreloader_mc._visible = true;
  soundAnimHandler(true);
 }
}

```

Thanks for any help
