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
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:
// 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;
}
};