# Sound Randomly Decided to stop working

**URL:** <https://forum.kirupa.com/t/sound-randomly-decided-to-stop-working/189654>\
**Category:** flash\
**Created:** [June 5, 2006, 1:49am UTC](https://forum.kirupa.com/t/sound-randomly-decided-to-stop-working/189654 "2006-06-05T01:49:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vexir](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@Vexir](https://forum.kirupa.com/u/Vexir)\
**Post date:** [June 5, 2006, 1:49am UTC](https://forum.kirupa.com/t/sound-randomly-decided-to-stop-working/189654/1 "2006-06-05T01:49:33Z")

</div>

I’ve been working on my site for a couple days now, and everything was going fine, then BAM. The music decides to stop working. I didnt change anything, all I did was add a small piece of code to an ALREADY EXISTING button with some code ALREADY on it. All I added was

```auto

		if (_root.currMovie == undefined) {
		_root.currMovie = "aboutus";
		_root.container.loadMovie("aboutus.swf");
	} else if (_root.currMovie != "aboutus") {
		if (_root.container._currentframe >= _root.container.midframe) {
		_root.currMovie = "aboutus";
		_root.container.play();

		}
	}

```

And somehow the music stopped playing when it was supposed to. It doesnt work in an SWF, it doesnt work when I hit CTRL+ENTER, and I am really stumped to god. I didnt change any of the sound code! For the record, here it is:

```auto

// move this keyframe to where you want the sound to start
vexironSound = new Sound();
vexironSound.attachSound("enigmated");
vexironSound.start(0, 99999);
vexironSound.setVolume(0);
soundon = 1;
// adjust how fast you want your loop to fade in
fadeinrate = 1;
onEnterFrame = function () {
	volume += fadeinrate;
	vexironSound.setVolume(volume);
	if (volume>=100) {
		onEnterFrame = null;
	}
};

```
