Combined Code
movieClip 7 {
}
movieClip 8 {
}
frame 2 {
var bt = getBytesTotal();
var bl = getBytesLoaded();
var percent = Math.floor((bl / bt) * 100);
var soundtrack = true;
preload_mc.myOutput.text = bl + '/' + bt + ' (' + percent + '%)';
preload_mc.indicator._width = (percent / 100) * 554;
if (percent >= 100) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
}
frame 3 {
function switchSound() {
soundtrack = !soundtrack;
var v1 = soundtrack ? 'dance_with_me' : 'dont_lie';
sound.stop();
sound.attachSound(v1);
sound.start(0, 5000);
}
var soundtrack = false;
var sound = new Sound();
switcher_btn.onRelease = function () {
switchSound();
};
switchSound();
}
movieClip 110 {
}
frame 103 {
gotoAndPlay(4);
}