# Sound control problem

**URL:** <https://forum.kirupa.com/t/sound-control-problem/154032>\
**Category:** flash\
**Created:** [July 6, 2005, 3:40pm UTC](https://forum.kirupa.com/t/sound-control-problem/154032 "2005-07-06T15:40:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![feiticeria](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@feiticeria](https://forum.kirupa.com/u/feiticeria)\
**Post date:** [July 6, 2005, 3:40pm UTC](https://forum.kirupa.com/t/sound-control-problem/154032/1 "2005-07-06T15:40:43Z")

</div>

For those who have any experience making a mini sound control through flash, I could really use your help! I’m externally loading the sound using the attachSound method, each seperate .swf file has a different sound clip which is loaded into Level 1. My problem lies with unloading the movie & opening another clip in the same leve, which simply doesn’t seem to load.

On the “forward” button, I have the following coding:

```auto
on (release) {
	if(num < maxtrack){
		if(music){
			music = false;
			stopAllSounds();
		}
		soundLoad = false;
	}
}

```

On the movieclip that loads the external file, I have the following coding:

```auto
onClipEvent(enterFrame){
	if (!soundLoad){
		unloadMovieNum(1);
		num++;
		loadMovieNum("sound" + num + ".swf",1);
		soundLoad = true;
	}
	percentloaded = Math.floor(_level1.getBytesLoaded()/_level1.getBytesTotal()*100);
	load = percentloaded + "%";
	if(percentloaded == 100 && !initialized){
		_level1.mysound();
		_level1.volumeCTRL(vol);
		initialized = true;
		 _visible = false;
	}
}

```

The “num” value starts off at 0 and loads the “sound1.swf” file, but it doesn’t load the “sound2.swf” file when i click the forward button. It just stops all sounds as coded. I’ve attached the sound control fla (Untitled-2.fla) and the two sound files (sound1.swf & sound2.swf). If anyone could help me out, it’d be appreciated, thank you for reading this long post 😉
